hdelacerna / php-crypto-utils
A lightweight PHP library for AES-256-CBC encryption/decryption using OpenSSL-compatible key derivation and formatting.
v1.0.0
2025-06-30 12:10 UTC
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^12.2
README
A lightweight PHP library for AES-256-CBC encryption and decryption using OpenSSL-compatible formatting. It includes both an instance-based Encryption
class and a static Crypto
facade for easy use.
🚀 Features
- AES-256-CBC symmetric encryption
- OpenSSL-compatible output (with
Salted__
prefix) - Base64 encoded results
- Passphrase-based key derivation (similar to
EVP_BytesToKey
) - Facade for static usage
📦 Installation
composer require hdelacerna/php-crypto-utils