edusalguero / zifratu
A PHP library to encrypt and decrypt using AES in a MySQL compatible way
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/edusalguero/zifratu
Requires
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-10-12 01:24:12 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);