Israeli Bank Importer - v1.44.5
    Preparing search index...

    Function encryptBuffer

    • Encrypts a UTF-8 plaintext string with AES-256-GCM under a fresh random IV.

      The authenticated data is not stored. Decryption succeeds only when the same bytes are given again, which binds the ciphertext to what they name.

      Parameters

      • plaintext: string

        The string to encrypt.

      • key: Buffer

        32-byte AES key buffer.

      • aad: Buffer = NO_AAD

        Authenticated data; empty for a config file.

      Returns Omit<IEncryptedBuffers, "salt">

      The IV, the ciphertext and the GCM authentication tag.