Module wallet_metamask::password
source · Functions
- Decrypts a ciphertext using a key.
- Encrypts a message using a key.
- Generates a random salt. From: https://github.com/MetaMask/browser-passworder/blob/a8574c40d1e42b2bc2c2b3d330b0ea50aa450017/src/index.ts#L299
- Derives a key from a password and random salt.
Type Definitions
- Nonce size is set at 16 bytes (128 bits). From: https://github.com/MetaMask/browser-passworder/blob/a8574c40d1e42b2bc2c2b3d330b0ea50aa450017/src/index.ts#L83