https://github.com/zmisgod/php-aes
Encryption and decryption using asymmetric cryptography (using OpenSSL extention)
https://github.com/zmisgod/php-aes
aes aes-256 aes-cbc php php7
Last synced: 25 days ago
JSON representation
Encryption and decryption using asymmetric cryptography (using OpenSSL extention)
- Host: GitHub
- URL: https://github.com/zmisgod/php-aes
- Owner: zmisgod
- Created: 2017-06-22T06:48:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T01:33:17.000Z (over 8 years ago)
- Last Synced: 2025-01-14T08:52:15.934Z (over 1 year ago)
- Topics: aes, aes-256, aes-cbc, php, php7
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-aes
> based on PHP OpenSSL extension
This Aes Class using OpenSSL extension of PHP.
[The official of PHP manual suggest us using OpenSSL to replace Mcrypt extention](http://php.net/manual/en/migration71.deprecated.php "Why am i using OpenSSL extension")
## before using this
* Check your php extension and find OpenSSL.
`php -m | grep openssl`
## install
```
composer require zmisgod/php-aes
```
## usage
Here is a example
```
encrypt( 'star zmisgod' );
echo $encrypt . PHP_EOL;
//output : xviTncBNkTIg/44a27uGzw==
echo $aes->decrypt( $encrypt ) . PHP_EOL;
//output : star zmisgod
```
## contact