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

This package is auto-updated.

Last update: 2024-05-30 00:59:37 UTC


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