Closed Ruffio closed 6 years ago
bcrypt's base64 alphabet differs from what is considered the standard. Hence it has its own implementation. Also note that atob/btoa does not work well with binary data.
Is that because bcrypt was originally developed before 'the standard' became the standard ?
I am not aware of the historical background, unfortunately.
Cool project, that I'm going to use :-)
I have been looking thru the code and can see that some kind of Base64 encoding/decoding is used. Would it be an idea to use atob/btoa if available with a fallback to the currently implemented method if not? According to 'Can I Use' then all major browsers have these implemented and supported. It has been for many versions (https://caniuse.com/#search=atob):