Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Encryption and decryption using asymmetric cryptography (using OpenSSL extention)

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

zmis.me

@zmisgod