aufa / encryption
Another Encryption utility
Installs: 135
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/aufa/encryption
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2025-10-26 00:48:44 UTC
README
Another Encryption Helper
Encrypt string or another type of value to encryption.
by default encryption use mcrypt with:
MCRYPT_RIJNDAEL_256 + MCRYPT_MODE_ECB
and another encryption using alternative of str_rot13 and encoded by base64_encode
Encryption
/** * Using default encryption mcrypt */ Aufa\Encryption\Encryption::encrypt('string to encrypt', 'saltkey'); /** * Using alternative type */ Aufa\Encryption\Encryption::altEncrypt('string to encrypt', 'saltkey');
Decryption
/** * Decrypt encrypted string with auto detect encryption use */ Aufa\Encryption\Encryption::decrypt('string to decrypt', 'saltkey'); // or can use Aufa\Encryption\Encryption::altDecrypt('string to decrypt', 'saltkey');
Install Using Composer
Composer is handy tool for adding library easily from packagist and another resource to your application. Get Install on here : https://getcomposer.org and install on your OS.
{
"require": {
"aufa/encryption" : "~1"
}
}
Requirements
This library require php 5.3.2 or later. Suggest to enable mcrypt on your php configuration.
License
GPLv3 or later https://www.gnu.org/licenses/gpl-3.0.txt