edusalguero / zifratu
A PHP library to encrypt and decrypt using AES in a MySQL compatible way
v1.0.1
2016-12-31 17:08 UTC
Requires
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: ^5.7
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-08-30 06:57:14 UTC
README
Zifratu
Zifratu is a simple PHP library to encrypt and decrypt using AES in a MySQL compatible way
Usage
<?php $secret = 'my secret key'; $valueToSecure = 'test'; $zifratu = new \EduSalguero\Zifratu\ZifratuFacade($secret); $encryptedValue = $zifratu->encrypt($valueToSecure); $decryptedValue = $zifratu->decrypt($encryptedValue); printf('Secret: %s' . PHP_EOL, $secret); printf('Value to secure: %s' . PHP_EOL, $valueToSecure); printf('Encrypted value: %s' . PHP_EOL, $encryptedValue); printf('Decrypted value: %s' . PHP_EOL, $decryptedValue);