InitPHP Encryption

Authenticated symmetric encryption for PHP 8.2+ on top of OpenSSL and libsodium, with a versioned ciphertext format.

PHP 8.2+ MIT v3.0.0

Installation

terminal
$ composer require initphp/encryption

Requires PHP 8.2+. The package is published on Packagist as initphp/encryption.

What Encryption does

Secure, modern symmetric encryption for PHP 8.2+ on top of OpenSSL and libsodium — authenticated by default, versioned ciphertext format, single exception type.

Package details

Composer package
initphp/encryption
Latest version
3.0.0
Released
2026-11-22
Requires
PHP 8.2+ (^8.2)
License
MIT