I would like to find an ES5 SHA-1 string hashing algorithm. I am having trouble with finding a more official source. My desire would be to usecrypto.subtle.digest("SHA-1", new TextEncoder("utf-8").encode(str));
, but is seems there are many problems using this in IE11 with crypto, and the shims necessary for promises.
If anyone knows of a self-contained string SHA-1 hashing algorithm for IE11 written in ES5, I'd be most grateful.
NOTE: I know some of you are going to ask, so I'll just say I am using it for partial hash lookup, very similar to the way "have I been pwned" works. SHA-1 has long since been defunc as a secure hash, so I am not using it for that.