0.1.0 • Published 2 years ago

mysql-aes v0.1.0

Weekly downloads
79
License
MIT
Repository
github
Last release
2 years ago

mysql-aes

A Node.js implementation of MySQL aes_encrypt and aes_decrypt

Build Status Coverage Status npm version npm downloads npm license

Credits

https://github.com/mysqljs/mysql/issues/419#issuecomment-19873609

Install

$ npm i mysql-aes --save

API

const AES = require('mysql-aes')
return typesignatureequal in mysql
StringAES.encrypt(str, key)SELECT HEX(AES_ENCRYPT(str, key))
StringAES.decrypt(encrypted, key)SELECT CAST(AES_DECRYPT(UNHEX(encrypted), key) as CHAR)

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org