{"id":15693827,"url":"https://github.com/magicdawn/node-mysql-aes","last_synced_at":"2025-05-08T05:56:06.065Z","repository":{"id":57306775,"uuid":"71972344","full_name":"magicdawn/node-mysql-aes","owner":"magicdawn","description":"A Node.js implementation of MySQL `aes_encrypt` and `aes_decrypt`","archived":false,"fork":false,"pushed_at":"2023-12-11T12:08:54.000Z","size":35,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T05:56:01.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magicdawn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-26T06:17:09.000Z","updated_at":"2025-03-28T06:40:00.000Z","dependencies_parsed_at":"2024-06-19T11:29:47.466Z","dependency_job_id":"78a9e688-fdd5-44aa-b430-86dc8d03954e","html_url":"https://github.com/magicdawn/node-mysql-aes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-mysql-aes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-mysql-aes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-mysql-aes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-mysql-aes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicdawn","download_url":"https://codeload.github.com/magicdawn/node-mysql-aes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253009891,"owners_count":21839714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T18:49:25.998Z","updated_at":"2025-05-08T05:56:06.021Z","avatar_url":"https://github.com/magicdawn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql-aes\n\n\u003e A Node.js implementation of MySQL `aes_encrypt` and `aes_decrypt`\n\n[![Build Status](https://img.shields.io/travis/magicdawn/node-mysql-aes.svg?style=flat-square)](https://travis-ci.org/magicdawn/node-mysql-aes)\n[![Coverage Status](https://img.shields.io/codecov/c/github/magicdawn/node-mysql-aes.svg?style=flat-square)](https://codecov.io/gh/magicdawn/node-mysql-aes)\n[![npm version](https://img.shields.io/npm/v/mysql-aes.svg?style=flat-square)](https://www.npmjs.com/package/mysql-aes)\n[![npm downloads](https://img.shields.io/npm/dm/mysql-aes.svg?style=flat-square)](https://www.npmjs.com/package/mysql-aes)\n[![npm license](https://img.shields.io/npm/l/mysql-aes.svg?style=flat-square)](http://magicdawn.mit-license.org)\n\n## Credits\n\nhttps://github.com/mysqljs/mysql/issues/419#issuecomment-19873609\n\n## Install\n\n```sh\n$ npm i mysql-aes --save\n```\n\n## API\n\n```js\nconst AES = require('mysql-aes')\n```\n\n| return type | signature                     | equal in mysql                                            |\n| ----------- | ----------------------------- | --------------------------------------------------------- |\n| `String`    | `AES.encrypt(str, key)`       | `SELECT HEX(AES_ENCRYPT(str, key))`                       |\n| `String`    | `AES.decrypt(encrypted, key)` | `SELECT CAST(AES_DECRYPT(UNHEX(encrypted), key) as CHAR)` |\n\n## Changelog\n\n[CHANGELOG.md](CHANGELOG.md)\n\n## License\n\nthe MIT License http://magicdawn.mit-license.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fnode-mysql-aes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicdawn%2Fnode-mysql-aes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fnode-mysql-aes/lists"}