SHA-1 and SHA-256 hash calculator
A hash is a fixed-length fingerprint of data: any change in the input gives a completely different result. SHA-1 gives 20 bytes and SHA-256 gives 32. EMV uses SHA-1 in the certificates of offline data authentication.
Use it to compare a hash from a specification, a test vector, or a log with the hash of your own data.
Choose the algorithm and the input format, text or hex, and read the hash in hex. The calculation uses the Web Crypto API of your browser, and nothing is sent anywhere.
Worked example: the SHA-1 of the text abc is A9993E364706816ABA3E25717850C26C9CD0D89D, the published test vector.
New to EMV? Read EMV in 5 minutes or browse the glossary
Everything runs in your browser. Nothing you enter leaves this page.
- Result
What a hash does
A hash works in one direction only: the digest does not reveal the input, and its length never depends on the length of the input.