mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
makeEncKey to use UInt8Array
This commit is contained in:
@@ -399,7 +399,8 @@ function initCryptoService(constantsService) {
|
||||
};
|
||||
|
||||
CryptoService.prototype.makeEncKey = function (key) {
|
||||
var bytes = forge.random.getBytesSync(512 / 8);
|
||||
var bytes = new Uint8Array(512 / 8);
|
||||
_crypto.getRandomValues(bytes);
|
||||
return this.encrypt(bytes, key, 'raw');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user