Polkadot Apps
    Preparing search index...

    Function aesGcmDecryptText

    • Decrypt AES-256-GCM ciphertext back to a UTF-8 string.

      Parameters

      • ciphertext: Uint8Array

        Data to decrypt.

      • key: Uint8Array

        32-byte AES-256 key.

      • nonce: Uint8Array

        12-byte nonce used during encryption.

      Returns string

      The decrypted plaintext string.

      If decryption or authentication fails.