Download the PHP package irfan-manitechnest/sodium-crypto without Composer
On this page you can find all versions of the php package irfan-manitechnest/sodium-crypto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download irfan-manitechnest/sodium-crypto
More information about irfan-manitechnest/sodium-crypto
Files in irfan-manitechnest/sodium-crypto
Package sodium-crypto
Short Description A modern PHP 8.3+ encryption library (Fidelius replacement) using the Sodium extension.
License MIT
Informations about the package sodium-crypto
SodiumCrypto – A Modern PHP Encryption Library (Fidelius Replacement)
A modern PHP 8.3+ encryption library (Fidelius replacement) using the Sodium extension.
A lightweight, object-oriented encryption/decryption library built on PHP's libsodium extension. It provides both symmetric and asymmetric authenticated encryption workflows (Fidelius-compatible), secure signing, password hashing, and utilities.
✨ Features
- ✅ Modern PHP 8.3+ OOP API
- ✅ Asymmetric Authenticated Encryption (Fidelius-like) with
sodium_crypto_box - ✅ Symmetric Encryption (secretbox) for fast, secure storage encryption
- ✅ Digital Signatures (signing and verification)
- ✅ Password hashing & secure password-based encryption
- ✅ Fully tested with PHPUnit 10+
- ✅ PSR-4 compliant and ready for Packagist
📦 Installation
Ensure the PHP Sodium extension is enabled (php_sodium.dll or built-in since PHP 7.2+).
🚀 Usage Examples
🔑 Generate Asymmetric Key Pairs
🔒 Asymmetric Encryption (Fidelius-style)
🔑 Symmetric Encryption
✍️ Digital Signatures
🔑 Password Hashing
🧪 Running Tests
All tests are defined in tests/ and use PHPUnit 10+.
📂 Project Structure
🏗 Architecture
Below is the UML diagram representing the library's structure and relationships:

This diagram illustrates the core classes (Encryptor, FideliusEncryptor, KeyManager, Signer, PasswordEncryptor, and Utils) and how they interact.
Exception classes are thrown across all cryptographic components.
📜 License
MIT License – Use freely in commercial and open-source projects.
🤝 Contributing
Pull requests are welcome! Please run PHPUnit tests before submitting.
All versions of sodium-crypto with dependencies
ext-sodium Version *