Giter Site home page Giter Site logo

cryptos's Introduction

cryptos

Just having fun

SHA-256

SHA-256 implementation following NIST FIPS 180-4 spec in cryptos/sha256.py. Pure Python, slow, trying to closely follow the document spec, obviously not to be used anywhere except for educational purposes.

$ echo "some test file lol" > testfile.txt
$ shasum -a 256 testfile.txt
4a79aed64097a0cd9e87f1e88e9ad771ddb5c5d762b3c3bbf02adf3112d5d375
$ python -m cryptos.sha256 testfile.txt
4a79aed64097a0cd9e87f1e88e9ad771ddb5c5d762b3c3bbf02adf3112d5d375

Keys

Bitcoin elliptic curve - compatible private keys can be generated using default system entropy with:

$ python -m cryptos.private_key
0x5748d05ca380dbebea56e135c7671dd4221b204271a9a87bb4d3f24afa64f0e0

Or to seed entropy directly from the user for generating the key:

$ python -m cryptos.private_key user
Enter some word #1/5: hi
Enter some word #2/5: there
Enter some word #3/5: lol
Enter some word #4/5: entropy!
Enter some word #5/5: cool
0xd2e21be9bdc05304b7dd4347e73d1a14009732780125db39a1eb7736d9be245

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.