In computer science and cryptography, Whirlpool (sometimes styled WHIRLPOOL) is a cryptographic hash function. It was designed by Vincent Rijmen (co-creator of the Advanced Encryption Standard) and Paulo S. L. M. Barreto, who first described it in 2000.

The hash has been recommended by the NESSIE project. It has also been adopted by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC) as part of the joint ISO/IEC 10118-3 international standard.

1 Using Whirlpool

Even a small change in the message will (with an extremely high probability of (1-10^-154) result in a different hash, which will usually look completely different just like two unrelated random numbers do. The following demonstrates the result of changing the previous input by a single letter (a single bit, even, in ASCII-compatible encodings), replacing d with e:

    var msg1 = "The quick brown fox jumps over the lazy dog";
    var msg2 = "The quick brown fox jumps over the lazy eog";
    console.log(new Ax.crypt.Whirlpool().add(msg1).hash());
    console.log(new Ax.crypt.Whirlpool().add(msg2).hash());