nickcv-ln / yii2-encrypter Goto Github PK
View Code? Open in Web Editor NEWmodule that handles encryption using php openssl for better performances
module that handles encryption using php openssl for better performances
Hi, thanks for this very useful extension. I have a question: I have a model attribute that can be null, but if is not, then it must be unique. This check is performed at database level. As far as I understand, the encryption is performed on null fields as well, therefore producing an integrity violation at database level, since the encrypted string resulting from encrypting '' (which is the value of the blank field left as null) is actually not null. Is there already a way to prevent this, or I should work on it? Thank you very much
Hi. How to order by encrypted fields??
My encrytion for value "2" is "vURoRv4D6OxzgIH3KXH+uA==" having + symbol. which is creating a problem.
Please suggest to stop + symbol in URL.
Hey,
thanks for this great extension. In 2015 you wrote:
The current version currently uses a global key for encryption, but in the future I will add an easy way to do per-user encryption.
The only issue with per-user encryption is that you need to generate and store the user key otherwise you'd obviously lose the data. I just want to think about the best approach to include that without either assuming too much stuff or increasing the coupling.
I will probably release a new version next week with per-user encryption anyway!
How about using a PHP callback function to determine the current necessary password, like this:
'password' => function() { return Yii::$app->user->secret; }
Of course, the user needs to ensure that his secret never changes over time.
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.