The encrypted data.
The initialization vector.
The password for decryption.
The salt for key derivation.
The decrypted data.
const encrypted = 'EncryptedDataHere'; // Encrypted data obtained from the encryption process
const iv = '1234567890123456'; // Initialization vector used in the encryption process
const password = 'MySecretPassword'; // Password used in the encryption process
const salt = 'MySalt'; // Salt used in the encryption process
const decrypted = decrypt(encrypted, iv, password, salt);
console.log(decrypted);
Generated using TypeDoc
Decrypts data using the given parameters.