- Original C code from: https://github.com/brenns10/hashchain
Libraries | Original location (change for your purposes) |
---|---|
OpenSSL v1+ | C:\BATCHES\include\openssl (includes <openssl/lib.h> |
lcrypto dll | C:\CodeBlocks\MinGW\lib (linked by compiler directly) |
gcc hashchain.c -o hashchain.exe -lcrypto -I C:\BATCHES\include
hashchain.exe create hash_function LENGHT "STRING FOR HASH"
hashchain.exe verify hash_function hash1_base64 hash2_base64
- hash1_base64(n) --> hash2_base64(n+1) - for instance (n, n+1 are base64_decoded)
- base64 encode is used only for printf