{"repo":"maize-tech/laravel-encryptable","free":true,"listed":false,"github":"https://github.com/maize-tech/laravel-encryptable","clone":"git clone https://github.com/maize-tech/laravel-encryptable.git","description":"Easily anonymize sensitive data through eloquent queries","language":"PHP","stars":142,"topics":["api","php","laravel","eloquent","encryptable","encryption"],"license":"MIT","category":"security-tools","readme_excerpt":"Laravel Encryptable This package allows you to anonymize sensitive data (like the name, surname and email address of a user) similarly to Laravel's Encryption feature, but still have the ability to make direct queries to the database. An example use case could be the need to make search queries through anonymized attributes. This package currently supports MySQL and PostgreSQL databases. Installation You can install the package via composer: You can publish the config file with: This is the content of the published config file: Usage Basic To use the package, just add the Encryptable cast to all model attributes you want to anonymize. Once done, all values will be encrypted before being stored in the database, and decrypted when querying them via Eloquent. Manually encrypt via PHP Manually decrypt via PHP Manually decrypt via DB Custom validation rules You can use one of the two custom rules to check the uniqueness or existence of a given encryptable value. ExistsEncrypted is an extension of Laravel's Exists rule, whereas UniqueEncrypted is an extension of Laravel's Unique rule. You can use them in the same way as Laravel's base rules: Testing Changelog Please see CHANGELOG for more information on what has changed recently. Contributing Please see CONTRIBUTING for details. Security Vulnerabilities Please review our security policy on how to report security vulnerabilities. Credits - Enrico De Lazzari - Riccardo Dalla Via - All Contributors License The MIT License (MIT). Pleas","default_branch":null,"files":null,"tree":[],"storefront":"/r/maize-tech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maize-tech/laravel-encryptable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}