Download the PHP package compellio/eloquent-aes without Composer
On this page you can find all versions of the php package compellio/eloquent-aes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download compellio/eloquent-aes
More information about compellio/eloquent-aes
Files in compellio/eloquent-aes
Package eloquent-aes
Short Description A Laravel Eloquent package to allow for model attribute encryption, using a seperate key
License MIT
Informations about the package eloquent-aes
Eloquent AES
This package enables an additional layer of security when handling sensitive data. Allowing key fields of your eloquent models in the database to be encrypted at rest using AES-256-CBC.
Introduction
This package allows for your Eloquent Encryption to be encrypted using a different AES-256-CBC key. This allows for your regular app:key to be rotated. If you're looking for 4096-RSA encruption then this package Compellio/EloquentEncryption
Installation
This package requires Laravel 8.x or higher.
You can install the package via composer:
If you wish to change the key cipher then you will need to publish the config.
To create an Eloquent encryption key, just as you would an app key. This will automatically add to the bottom of your .env
file.
⚠️ Please don't forget to back up your eloquent key
If you re-run this command, you will lose access to any encrypted data!
Usage
This package leverages Laravel's own custom casting to encode/decode values.
There are additional casts which will cast the decrypted value into a specific data type. If there is not one that you need, simply make a PR including sufficient testing.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Support
If you are having general issues with this package, feel free to contact me on Twitter.
If you believe you have found an issue, please report it using the GitHub issue tracker, or better yet, fork the repository and submit a pull request with a failing test.
If you're using this package, I'd love to hear your thoughts. Thanks!
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Richard Styles
- All Contributors
License
The MIT License (MIT). Please see License File for more information.