mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
move pbkdf2 to web crypto with shim fallback
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
isWebkit = !_crypto.subtle && !!_crypto.webkitSubtle;
|
||||
if (!isIE && !isWebkit) return;
|
||||
|
||||
// Added
|
||||
global.cryptoShimmed = true;
|
||||
|
||||
function s2a(s) {
|
||||
return btoa(s).replace(/\=+$/, '').replace(/\+/g, '-').replace(/\//g, '_');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user