-
Notifications
You must be signed in to change notification settings - Fork 18
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
Changing hashes when switching JVM version #9
Comments
Thanks @rutchkiwi ! I'm not aware of the changes to MD5 in JDK11, will investigate. |
Great, thank you! :) If it helps I'm hashing java.io.files and byte arrays - both their hashes changed. |
I don't see a difference: JDK 11
JDK 8
|
Hmm odd - I'll come back to you with a concrete test case in a bit. |
Hi @tebeka after looking into this a bit futher and trying to make a concrete test case, it seems that in fact my problem is not with this library 😬 but rather that something else in the JDK has changed (I'm hashing images after some processing - probably somewhere in this processing something changed). I'm really sorry for wasting you time. Thank you very much for the help, and for this library! |
No worries, thanks for using clj-digest and reporting problems. |
Hi! Thanks for writing this library!
I just upgraded my JVM version from java 1.8 to openjdk 11, and with that change the hashes generated by the digest/md5 function changed.
This creates a problem for me, as I use this library for generating hashes that are used to check uniqueness of images uploaded into a system. (by storing the generated hashed in a database)
Is this expected behaviour?
Thanks!
The text was updated successfully, but these errors were encountered: