sumeetghimire / encrypt-decrypt-with-key
A Laravel package for encrypting and decrypting strings with a key
1.0.3
2024-01-31 12:18 UTC
Requires
- php: ^8.1
- laravel/framework: ^8.0|^9.0|^10.0
README
Laravel EncryptDecryptWithKey Package
Configuration
You can customize the package configuration by modifying the config/encrypt-decrypt.php
file.
License
The Laravel EncryptDecryptWithKey package is open-sourced software licensed under the MIT license.
Support
For any issues or suggestions, please open an issue on GitHub.
Credits
This package is maintained by Sumeet Ghimire.
Laravel
Require this package in your composer.json
and update composer.
composer require sumeetghimire/encrypt-decrypt-with-key
Example How to use
use SumeetGhimire\EncryptDecryptWithKey\EncryptionHelper;
$encryptedString = EncryptionHelper::encryptString('test');
$decryptedString = EncryptionHelper::decryptString($encryptedString);
return $decryptedString; // Returns 'test'
In .env key will be auto generated change as per your requirement
ENCRYPT_KEY=8141b227d15377e8249b4c2cd42df4a7