Hash function - KaveriBridge/crypto GitHub Wiki
About
-
- A cryptographic hash is a kind of ‘signature’ for a text or a data file.
- SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text.
Function
-
Input:
- Any size
- Content can be anything - email, book
-
Output:
- Fixed size
- Also called a digest
- Serves as signature for the input
SHA-256 Example
- Input: "I am Batman"
- Hash: 6015cf7142ba060f5026be9cc442c12ed7f0d5aeccbaa0678deebc51c6a1b282