Closed mahnunchik closed 1 year ago
I think we can make and host it on gist.github.com, pointing to it in readme, etc, but I don't want to add it to the library, because it's really discouraged, and brings bad vibes.
I've only added sha-1, because ssh/pgp still use it. They don't use md5 though.
Yes, sha-1
and md5
have bad vibes...
Maybe it may be included in the library as:
import { md5 } from '@noble/hashes/do-not-use-md5';
What are the other users besides gravatar? Do you personally need it because of gravatar, or something else?
For me, yes, for Gravatar.
If the library has md5
it will cover all my hash related stuff for the entire project 😉
SHA1 is used in TOTP (hmac), PGP.
We can't include md5 since it's not popular at all. A separate includable file would work just as good though, for yours and other users purposes.
import { md5 } from '@noble/hashes/do-not-use-md5';
haha
It would be nice to have a modern and dependency-free version of the
md5
hash.It is still required for non-cryptographic services such as Gravatar.