Encrypts data using AES-256-ECB mode.
The 32-byte encryption key.
The data to encrypt.
A promise that resolves to the encrypted data.
Error if the key is not exactly 32 bytes.
const encrypted = await aes256ecbEncrypt(key, plaintext) Copy
const encrypted = await aes256ecbEncrypt(key, plaintext)
Encrypts data using AES-256-ECB mode.