Provides methods for encrypting and decrypting data using the EMIP-003 standard.

Constructors

Methods

Constructors

Methods

  • Decrypts data that was encrypted using the EMIP-003 standard.

    Parameters

    • encryptedData: Uint8Array

      The data to decrypt.

    • passphrase: Uint8Array

      The passphrase to use for decryption.

    Returns Uint8Array

    • The decrypted data.
    • Throws an error if decryption fails.
  • Encrypts data using the EMIP-003 standard with password-based key derivation.

    Parameters

    • data: Uint8Array

      The data to encrypt.

    • passphrase: Uint8Array

      The passphrase to use for encryption.

    Returns Uint8Array

    • The encrypted data.
    • Throws an error if encryption fails.