hdelacerna / php-crypto-utils
A lightweight PHP library for AES-256-CBC encryption/decryption using OpenSSL-compatible key derivation and formatting.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/hdelacerna/php-crypto-utils
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