• Decrypts data using the given parameters.

    Parameters

    • encryptedData: string

      The encrypted data.

    • iv: string

      The initialization vector.

    • password: string

      The password for decryption.

    • salt: string

      The salt for key derivation.

    Returns string

    The decrypted data.

    Example

    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