crazynds/crypto-cache

Package that encrypts all data used in the cache in such a way that a malicious user who has access to the cache system such as redis for example cannot extract the data directly.

v1.1.2 2023-02-15 20:38 UTC

This package is auto-updated.

Last update: 2024-10-16 00:38:17 UTC


README

Latest Stable Version Total Downloads License

This package encrypts the data stored in cache using the standard laravel library and saves it in another cache, allowing you to cache sensitive data, preventing any intrusion from leaking that data.

Installation

  1. Install the package
composer require crazynds/crypto-cache
// Change the CACHE_DRIVER in .env or change 'default' value in config/cache.php to 'crypto-cache'

'default' => env('CACHE_DRIVER', 'crypto-cache'),


// Add these lines in config/cache.php in stores array:

'stores' =>[
    // ...

    'crypto-cache'=>[
        'driver' => 'crypto-cache',
        'cache' => '<cache to store the data>'
    ],

],

Tested and supported versions of Laravel

  • 9.x
  • 8.x