-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different hashes computed #20
Comments
Hi @skysley. Sorry for my late reply. hash1, hash2 and hash5 share a same issue. hash4 is my failure. hash3 and hash6 are correct. |
Thank you for the reply. Nevertheless, I've already switched to Crypto++. |
You can modify like:
If you would like to inject a sha256 function simply to your software, you can use PicoSHA2 which has single header file. Crypto++ is a good library though. |
Okay, thanks for the clarifications. In addition to your comments, one also needs to use Additionally, if I change
However, for large files (iterators) it would be nice if not all the data is loaded into Updated test program:
Program output:
|
Running this program
on a file that contains "The quick brown fox jumps over the lazy dog" (without newline!) results in a number of different Hashes:
g++ -std=c++11 test_hashes.cpp -o test_hashes && ./test_hashes
The text was updated successfully, but these errors were encountered: