Index of: /package/mysqlAES/

File Name  ↓ File Size  ↓ Date  ↓ 
--
2.7 KiB2013-Sep-23 00:30
3.1 KiB2018-Feb-17 01:49
3.0 KiB2018-Feb-25 20:19
2.8 KiB2018-Mar-02 21:16
244 B2018-Mar-02 21:18

mysqlAES pear package

This project has been moved to GitHUB. This page is deprecated. See also follow informations. 이 프로젝트는 GitHUB로 이동을 하였습니다. 더이상 이곳은 관리를 하지 않으니 아래 URL을 참고 하십시오. Homepage: https://github.com/OOPS-ORG-PHP/mysqlAES Downloads: https://github.com/OOPS-ORG-PHP/mysqlAES/releases Issues: https://github.com/OOPS-ORG-PHP/mysqlAES/issues mysqlAES pear 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. mysqlAES pear package는 lib_mysqludf_aes256 MySQL UDF와 mysqlAES javascript API와 호환이 되는 AES 128/192/256 암호화를 지원합니다. 또한, MySQL/MariDB의 hex/unhex와 호환이 되는 hex/unhex API를 제공합니다. 128bit 암호화 시에는, MySQL 또는 Mariadb의 AES_ENCRYPT, AES_DECRYPT와 동일한 동작을 합니다. Supported API: * mysqlAES::hex (string) * mysqlAES::unhex (string) * mysqlAES::encrypt (string, key) * mysqlAES::decrypt (encrypted, key) Reference * mysqlAES Class Reference * Source Repository * This class is compatible with follow APIs: - MySQL UDF lib_mysqludf_aes256 - Javascript mysqlAES Class Example:
<?php
require_once 'mysqlAES.php';

$string = "123 abced\n";
$key    = '0123456789012345';
$enc = mysqlAES::hex (mysqlAES::encrypt ($string, $key));
$dec = mysqlAES::decrypt (mysqlAES::unhex ($enc), $key);
?>
Installation:
    [root@host ~]$ pear channel-discover pear.oops.org
    [root@host ~]$ pear install oops/mysqlAES
    [root@host ~]$ pear list -a