SHA512 file hasher much slower than MD5 file hasher #39
-
Hello, I'm new in this field and I'm trying to insert the file hasher like it was suggested by Daninet in stackoverflow: https://stackoverflow.com/a/63287199/6251760 (Link copied from the README.md file) but instead of using a MD5 hash instance I would like to use the SHA512 instance. For example I tried to hash a file with 1.4 Gb:
Is it possible that I have to write it differently for SHA512 or are these numbers correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is normal. The SHA512 algorithm is more secure but also more expensive from CPU perspective. (it has 64 rounds compared to MD5's 4 rounds). If you need a fast hashing algorithm and you don't need security, you could consider using XXHash32/64. |
Beta Was this translation helpful? Give feedback.
This is normal. The SHA512 algorithm is more secure but also more expensive from CPU perspective. (it has 64 rounds compared to MD5's 4 rounds). If you need a fast hashing algorithm and you don't need security, you could consider using XXHash32/64.