Skip to content
EMV Tools

Tools

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

What a hash doesSHA-256 turns any input into a 32-byte digest, written as 64 hex digits. The inputs abc and abd differ in one letter, yet their digests look completely different.abcSHA-256BA7816BF8F01CFEA…abdSHA-256A52D159F262B2C6D…

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.