You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added EncryptionKey type to hold a CryptoKey along with its derivation parameters.
Added ExportedEncryptionKey type to hold a JsonWebKey along with its derivation parameters.
Added Optional keyMetadata property of type KeyDerivationOptions to EncryptionResult.
Added Optional opts argument to keyFromPassword to specify algorithm and parameters to be used in the key derivation. Defaults to PBKDF2 with 900.000 iterations.(#49))
Added iterations argument to keyFromPassword function.
Added optional keyDerivationOptions argument to encrypt and encryptWithDetail to specify algorithm and parameters to be used in the key Defaults to PBKDF2 at 900.000 iterations.
Added updateVaultWithDetail function to update existing vault and exported key with a safer encryption method if available (#49)
Added updateVault function to update existing vault string with a safer encryption method if available (#49)
Changed
Add optional parameters and properties to support custom derivation options (#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.