rndoom04 / encryptor
Encryption and decryption PHP library.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rndoom04/encryptor
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2025-09-29 02:59:03 UTC
README
Compatible with PHP >= 7.0.
Install
For PHP version >= 7.0
:
composer require Rndoom04/encryptor
How to use it
Firstly init the library by simply "use".
use Rndoom04\encryptor;
Load the library and let's encrypt.
$string_to_test = "Hello this is a text to encrypt.";
$encryptor = new \Rndoom04\encryptor\encryptor();
$encryptor->setKey("my-secret-key"); // Set key
$encrypted_string = $encryptor->encrypt($string_to_test); // Return encrypted string
$decrypted_string = $encryptor->decrypt($encrypted_string); // Encrypted string you can decrypt back to plain string