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
cpp
cryptography
openssl
Marcos Oliveira
Software developer