Download the PHP package ferdhika31/php-crispy without Composer
On this page you can find all versions of the php package ferdhika31/php-crispy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ferdhika31/php-crispy
More information about ferdhika31/php-crispy
Files in ferdhika31/php-crispy
Package php-crispy
Short Description A custom Crypto utility PHP library that ports and wraps cryptography concepts from the go-crypsi module to make life easier when working with Digest, Cipher, HMAC, RSA, and RSA Digital Signatures natively in PHP.
License MIT
Informations about the package php-crispy
php-crispy
A custom Crypto utility PHP library that ports and wraps cryptography concepts from the go-crypsi module to make life easier when working with Digest, Cipher, HMAC, RSA, and RSA Digital Signatures natively in PHP.
Requirements
- PHP 8.1 or higher
ext-opensslext-hash
Installation
You can install the package via composer:
(Note: During development, you can simply clone this repository and run composer install)
Features
The library is split into 4 core cryptography modules under the Ferdhika31\PhpCrispy namespace:
1. Aesx (Symmetric Encryption)
Provides AES encryption and decryption functions mapping to CBC, CFB, and GCM modes. It implicitly determines your AES key size (128, 192, or 256 bits).
2. Digestx (Hashing)
Provides easy-to-use variadic functions for standard checksums. Supports MD5, SHA1, SHA256, SHA384, and SHA512.
3. Hmacx (Hash-based Message Authentication Code)
Provides HMAC signing capabilities guaranteeing data integrity, enforcing a minimum key length of 32 bytes for security.
4. Rsax (Asymmetric Encryption & Signatures)
Provides RSA Key Generation, Public-Key Cryptography Standard (PKCS) Encryption via OAEP, and RSA Digital Signatures.
Examples
To see full working examples for each algorithm, check the examples/ directory. Run them via terminal:
Testing
The library uses PHPUnit for robust testing. You can run the test suite by executing:
License
The MIT License (MIT). Please see License File for more information.
All versions of php-crispy with dependencies
ext-openssl Version *
ext-hash Version *