🔒 Explore Encryption & Hashing

An interactive way to learn two core ideas of cryptography. Hashing turns any text into a fixed-length fingerprint that cannot be reversed. Encryption scrambles text so that only someone with the key can turn it back.

This is a learning tool. To protect real files, use the File Encryptor tool, which uses modern AES-GCM with a strong key derivation.

🔑 Hashing: compare algorithms

AlgorithmHash (hex)Copy
MD5
128 bits
6cd3556deb0da54bca060b4c39479839
Broken: collisions are easy. Fine only for non-security checksums.
SHA-1
160 bits
943a702d06f34599aee1f8da8ef9f7296031d699
Broken for collisions since 2017. Do not use for security.
SHA-224
224 bits
8552d8b7a7dc5476cb9e25dee69a8091290764b7f2a64fe6e78e9568
A shortened SHA-256.
SHA-256
256 bits
315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3
Widely used and secure. Used by Bitcoin, TLS and Git (new format).
SHA-384
384 bits
55bc556b0d2fe0fce582ba5fe07baafff035653638c7ac0d5494c2a64c0bea1cc57331c7c12a45cdbca7f4c34a089eeb
A shortened SHA-512.
SHA-512
512 bits
c1527cd893c124773d811911970c8fe6e857d6df5dc9226bd8a160614c0cd963a4ddea2b94bb7d36021ef9d865d5cea294a82dd49a0bb269f51f6e7a57f79421
Secure, and fast on 64-bit CPUs.

🌊 The avalanche effect

Change one character and about half of the hash changes. This is why a hash is a good fingerprint: similar inputs give completely different hashes.

SHA-256 of your text: "Hello, world!"

315f5bdb76d078c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3

SHA-256 with the last character changed: "Hello, world "

95af82fdaec08ef166b66f4192590d7f67a11b6e29470db473c59f7fc1f7d1cf

113 of 256 bits changed (44%).

🔐 Encryption & decryption demo

Uses crypto-js passphrase mode, which is compatible with openssl enc -md md5. Its key derivation (a single MD5 round) is weak and Triple DES is deprecated, so use this to learn, not to protect secrets.

Related Tools