@metamask/browser-passworder
Advanced tools
Changelog
[4.2.0]
EncryptionKey
type to hold a CryptoKey
along with its derivation parameters.ExportedEncryptionKey
type to hold a JsonWebKey
along with its derivation parameters.keyMetadata
property of type KeyDerivationOptions
to EncryptionResult
.opts
argument to keyFromPassword
to specify algorithm and parameters to be used in the key derivation. Defaults to PBKDF2
with 900.000 iterations.(https://github.com/MetaMask/browser-passworder/pull/49))iterations
argument to keyFromPassword
function.keyDerivationOptions
argument to encrypt
and encryptWithDetail
to specify algorithm and parameters to be used in the key Defaults to PBKDF2
at 900.000 iterations.updateVaultWithDetail
function to update existing vault and exported key with a safer encryption method if available (#49)updateVault
function to update existing vault string with a safer encryption method if available (#49)encrypt
method accepts both EncryptionKey
and CryptoKey
types as key
argument.encryptWithKey
method accepts both EncryptionKey
and CryptoKey
types as key
argument.decrypt
method accepts both EncryptionKey
and CryptoKey
types as key
argument.decryptWithKey
method accepts both EncryptionKey
and CryptoKey
types as key
argument.importKey
method returns a CryptoKey
when a JWK string is passed, or an EncryptionKey
when an ExportedEncryptionKey
string is passed.exportKey
method accepts both EncryptionKey
and CryptoKey
types as key
argument, and returns an ExportedEncryptionKey
for the former and a JsonWebKey
for the latter.~4.8.4
(#50)