maize-tech / laravel-encryptable Goto Github PK
View Code? Open in Web Editor NEWEasily anonymize sensitive data through eloquent queries
License: MIT License
Easily anonymize sensitive data through eloquent queries
License: MIT License
If I create a new model the data will be encrypted but when i update the same model the values are stored in plain text in the database.
I'm casting the values in the model as "Encryptable". It would be unfortunate if I had to manually encrypt the data when updating a model
Encrypting a string already containing a colon : causes an issue when decrypting it.
It always throws Maize\Encryptable\Exceptions\UnserializationException
<?php
use Maize\Encryptable\Encryption;
$e = Encryption::php()->encrypt("test:string");
$p = Encryption::php()->decrypt($e);
I got this error when trying this code $encrypted = Encryption::php()->encrypt($value);
:
openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended
vendor / maize-tech / laravel-encryptable / src / PHPEncrypter.php : 82
I found the potential reason here :
https://stackoverflow.com/questions/11821195/use-of-initialization-vector-in-openssl-encrypt
Am i doing something wrong ? or is it a real issue ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.