mysql-aes
JSON →Provides Node.js implementations of MySQL's AES_ENCRYPT and AES_DECRYPT functions, enabling encryption and decryption compatible with MySQL's block cipher mode. Version 0.1.0, last updated in 2016, is the only stable release. It is a lightweight library with no external dependencies, supporting ESM and CommonJS. Key differentiator: it mirrors MySQL's AES behavior exactly, using AES-128-ECB with PKCS7 padding and a specific key derivation, making it suitable for applications that need to encrypt/decrypt data consistently with MySQL. However, it is unmaintained and uses a weak cipher mode (ECB) that should not be used for new projects; use a more secure alternative.
Resources
packagemysql-aes ↗