How to Generate Whirlpool Hash with C++ and OpenSSL
The Whirlpool Galaxy (M51) inspired the name of the algorithm.
In the previous article we showed how to generate Hash with MD5, as described there, the concepts will be similar.
Whirlpool (sometimes called WHIRLPOOL ) is a cryptographic hash function based on an AES block cipher.
It generates a hash of length of 128 characters.
Using with C++
For this example, we are going to hash the word Terminal Root . Follow the code below:
whirlpool.cpp
To compile, run:
The possible and expected output will be:
To check if it is correct, use the rhash
command with the following arguments:
Links Ășteis
- https://www.openssl.org/docs/man3.0/man3/EVP_whirlpool.html
- https://en.wikipedia.org/wiki/Whirlpool_(hash_function)
- https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
Comments