You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
WilliamVenner
changed the title
Hash calculates differently when reading from file
Hash calculates differently when reading from binary file
Jan 4, 2020
@WilliamVenner Sorry for my late reply.
The line in your "Read from file" code; picosha2::hash256(idt, s.begin(), s.end());
means "hashing the hashed data". So the printed hex string is different.
Here is my rough code:
Output:
test
SHA256:I can get it to work by reading manually into the vector:
Output:
The text was updated successfully, but these errors were encountered: