Download the PHP package joungkyun/mysqlaes without Composer
On this page you can find all versions of the php package joungkyun/mysqlaes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joungkyun/mysqlaes
More information about joungkyun/mysqlaes
Files in joungkyun/mysqlaes
Package mysqlaes
Short Description Support AES-256 encrypt and decrypt class APIs
License BSD-2-Clause
Homepage https://github.com/OOPS-ORG-PHP/mysqlAES
Informations about the package mysqlaes
PHP mysqlAES class library
Abstract
mysqlAES package supports AES 128/192/256 encryptioin, and this API is compatible with lib_mysqludf_aes256 MySQL UDF and mysqlAES javascript API.
Also, this api supports hex and unhex API that is compatble with MySQL and MariaDB.
If encrypt with 128bit, this api is operate in the same way with AES_ENCRYPT and AES_DECRYPT of MySQL or MariaDB.
License
BSD 2-Clause
Installation
mysqlAES 2.x works with PHP 7.1 and later. Use mysqlAES-1 branch or 1.x version for use with PHP 7.0 and before. The mysqlAES-1 branch also supports php 7 and later.
mysqlAES package needs follow external libraries.
- php openssl extension
And, you can install in three ways that are download source files by hands or using pear command or use composer. If you choose to install manually, you will also need to install the required external libraries yourself. Therefore, it is recommended to use the pear command to reduce this effort.
* Download source files
- download latest version at release page.
- uncompress the downloaded package to the desired path.
- add the path in the include_path ini option.
- include mysqlAES.php file in your code.
* Use pear command
This method is needed root privileges.
* Use composer
first, make composer.json as follow:
and, install mysqlAES
and, write code as follow:
APIs
See also mysqlAES reference pages. If you want to mysqlAES-1 reference, see also mysqlAES-1 reference pages.
- (string|null) oops\Encrypt\mysqlAES::hex(STRING)
- (string|null) oops\Encrypt\mysqlAES::unhex(STRING)
- (string|null) oops\Encrypt\mysqlAES::encrypt(STRING, KEY)
- (string|null) oops\Encrypt\mysqlAES::decrypt(ENCRYPTED_STRING, KEY)
Examples:
Reference
This class is compatible with follow APIs:
- MySQL UDF lib_mysqludf_aes256
- javascript mysqlAES class
All versions of mysqlaes with dependencies
ext-openssl Version *