Encrypted Pouch - v0.1.0
    Preparing search index...

    Class DecryptionError

    Error thrown when decryption fails.

    This can occur due to:

    • Wrong password/passphrase
    • Corrupted encrypted data
    • Invalid data format
    • Tampering with encrypted data
    try {
    const decrypted = await helper.decrypt(encrypted);
    } catch (error) {
    if (error instanceof DecryptionError) {
    console.error('Decryption failed:', error.message);
    }
    }

    Hierarchy

    • Error
      • DecryptionError
    Index

    Constructors

    Constructors