kcrypt / scala-sha

SHA and Shake for scala
Other
12 stars 3 forks source link

Consider API similar to Java Message DIgest #139

Open ekrich opened 1 year ago

ekrich commented 1 year ago

Java has a MessageDigest and MessageDigestStream that is used when hashing files and jars. We are in the process of cross compiling tools and we have used digest hashes for directories and files. Because Scala Native needs these things locally we would have to copy your code with attribution.

catap commented 6 months ago

Hey,

After a lot of thought about this issue I'd like to avoid to implement such API, at least at this librarry.

The root cause: it should be quite deply registered inside environment and standard API doesn't produce any nice way to do it, see: https://docs.oracle.com/javase/8/docs/api/java/security/MessageDigest.html

If you have an idea how to register it in porable way, I'll change my mind and implement it.

But I haven't see the way :(