Decrypts data using AES-256-ECB mode.
The 32-byte decryption key.
The encrypted data to decrypt.
A promise that resolves to the decrypted data.
Error if the key is not exactly 32 bytes.
const decrypted = await aes256ecbDecrypt(key, ciphertext) Copy
const decrypted = await aes256ecbDecrypt(key, ciphertext)
Decrypts data using AES-256-ECB mode.