PHPackages                             noprotocol/php-mysql-aes-crypt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. noprotocol/php-mysql-aes-crypt

ActiveLibrary[Database &amp; ORM](/categories/database)

noprotocol/php-mysql-aes-crypt
==============================

Encrypt/decrypt data in PHP to a format compatible with MySQL AES\_ENCRYPT &amp; AES\_DECRYPT functions.

v2.0.2(6y ago)2491.1k↓63%9[3 issues](https://github.com/noprotocol/php-mysql-aes-crypt/issues)[1 PRs](https://github.com/noprotocol/php-mysql-aes-crypt/pulls)MITPHPCI failing

Since Sep 29Pushed 6y ago4 watchersCompare

[ Source](https://github.com/noprotocol/php-mysql-aes-crypt)[ Packagist](https://packagist.org/packages/noprotocol/php-mysql-aes-crypt)[ RSS](/packages/noprotocol-php-mysql-aes-crypt/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

PHP MySQL AES encrypt/decrypt
=============================

[](#php-mysql-aes-encryptdecrypt)

Encrypt/decrypt values in PHP which are compatible with MySQL's `aes_encrypt()` &amp; `aes_decrypt()` functions. [1](#smashing-magazine-article)

[![Build Status](https://camo.githubusercontent.com/eaddb07a588b3fe8b9088a088823601c577f3f994e01b3d6281f77563c93e9d1/68747470733a2f2f7472617669732d63692e6f72672f6e6f70726f746f636f6c2f7068702d6d7973716c2d6165732d63727970742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/noprotocol/php-mysql-aes-crypt)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dd427cd132273efcd673fee26180f070301ea510541dafab45e6c00eec68b070/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f70726f746f636f6c2f7068702d6d7973716c2d6165732d63727970742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/noprotocol/php-mysql-aes-crypt/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/538bb4711b211eb4b50df0a8ff4f819ad71ad0b1f202c6200778b8cf28ed2f52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f70726f746f636f6c2f7068702d6d7973716c2d6165732d63727970742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/noprotocol/php-mysql-aes-crypt/?branch=master)

[Change log](CHANGELOG.md)

Installation
------------

[](#installation)

### With Composer

[](#with-composer)

```
$ composer require noprotocol/php-mysql-aes-crypt

```

```
{
    "require": {
        "noprotocol/php-mysql-aes-crypt": "^2.0.0"
    }
}
```

```
