Library API
    Preparing search index...

    Function decryptWithPassword

    • Decrypts data previously encrypted with encryptWithPassword using the supplied password. Authenticates data integrity and throws an error if the password is incorrect or data was tampered with.

      Parameters

      • encrypted: BinaryData

        Encrypted binary data buffer

      • password: string

        Decryption password / passphrase

      • iterations: number = 100_000

        PBKDF2 iteration count (default: 100,000)

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Decrypted plaintext as Uint8Array