safebash / opencrypto

OpenCrypto is a lightweight JavaScript library built on top of WebCryptography API
MIT License
74 stars 23 forks source link

Bug in getFingerprint #44

Open jrabausch opened 7 months ago

jrabausch commented 7 months ago

Hi, I stumbled across a bug in the getFingerprint function, line 2406:

options.hash = (typeof hash !== 'undefined') ? hash : 'SHA-512'

should read:

options.hash = (typeof options.hash !== 'undefined') ? options.hash : 'SHA-512'

Kind regards Johannes