PailebotThe web navigator’s logbook
Logbook / Interactive

Hashes and ciphers

Pick an algorithm, type a message and follow what happens to it. The steps show the first and last part of each calculation; the repetitive middle is left out.

SHA-256 secure hash

SHA-256 holds up a good part of the internet: HTTPS certificates, software signatures, Git and Bitcoin. It produces 256 bits and, unlike MD5, nobody has found a collision or a way back from the result to the message.

It works much like MD5, with eight registers, 64 rounds and a message schedule in which every new word depends on four earlier ones. Changing a single bit of the message changes about half the bits of the result.

Weaknesses

It is a secure hash but a fast one, so on its own it is not enough to store passwords: an attacker can try billions of candidates per second. That is what deliberately slow algorithms such as Argon2id are for. A quantum computer would only halve its strength in bits (Grover’s algorithm), which still leaves a huge margin.

Specifications

2048-bit RSA key
…
Random seeds
…

Result

Step by step

    Everything runs in your browser; nothing you type leaves it. Implementations written for teaching and checked against OpenSSL. To protect real data, use your platform’s own libraries.