dentmate / rajahan
PHP package for encryption/decryption using AES algorithm compatible with CryptoJS
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/dentmate/rajahan
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is not auto-updated.
Last update: 2025-10-10 07:57:13 UTC
README
PHP package for encryption/decryption using AES algorithm compatible with CryptoJS.
Algorithm
Cipher | AES-256 |
Mode | CBC |
Key Derivation | evpkdf (OpenSSL custom, MD5, 1 iteration) |
Installation
Installation is best done via Composer, you may use the following command:
composer require dentmate/rajahan
This will add the latest release of rajahan as a module to your project
Example
This is an example code for using this library:
<?php
use DentMate\Rajahan\AES;
$passphrase = 'my passphrase';
$plain = 'example value';
$encrypted = AES::encrypt($plain, $passphrase);
print_r('Encrypted : ' . $encrypted);
$decrypted = AES::decrypt($encrypted, $passphrase);
print_r('Decrypted : ' . $decrypted);
License
Code licensed under Apache 2.0 License.