Iridium — Security Library for PHP
A PHP library for encrypting data, hashing passwords, and managing secure tokens. Built on proven cryptographic primitives with a clean, developer-friendly API.
Features
- URL-safe Base64 encoding and decoding
- AES-256-GCM authenticated encryption with key derivation
- Password hashing with encryption for defense in depth
- Split token authentication for cookies, password reset, and API keys
- Pluggable token storage via a clean interface, with bundled PDO support
Installation
Install via Composer:
composer require oire/iridium
Requirements
- PHP 8.3 or later
- PDO, Mbstring, OpenSSL, and Sodium extensions
Source Code and Support
Iridium is open-source software licensed under the Apache License 2.0.