archwisp / phpencryptdata Goto Github PK
View Code? Open in Web Editor NEWPHP Encrypt Data - A Simple Data Encryption Library For PHP 5.3+
License: MIT License
PHP Encrypt Data - A Simple Data Encryption Library For PHP 5.3+
License: MIT License
When keystream blocks are reused with CFB, bad things can happen. OFB may provide better resistance.
I would like to come up with a name that won't be confused with other projects, conveys the primary goals of the library, and possibly allows for SEO.
Hi, I am using this wonderful package,. I used this in cUrling some data after registration,.It will just give me the valid token when dumping.But I notice that this will output error like below when I hit back button or go back to registration page again. In registration page, I have a function that will fetch a json data if credentials are valid. emails and password is decrypted tru this package
InvalidArgumentException in Simple.php line 36:
Encryption key must be exactly 32 bytes long.
Since we're not using a KDF, the encrypt function should throw an exception if the keys or IV are shorter than the key & block size of the block cipher.
Aim for 100% test coverage because this is a critical library
This will be done after:
Hi, any help how would you test or make pass a test like this? It seems that everytime I run phpunit, encrypted data changes
` /**
* @test
*/
public function check_if_user_email_is_decrypted()
{
$userEmail = $this->encryptor->encrypt('[email protected]');
//var_dump($userEmail);//"MHxnZjI5dkQ5WUV4L2Y3azd4V3c2YzJ4TkxUR1Rjb0x6ckR1RjVFbWdHSktNSmRqWDVJQT09fEdxKzdCUTEvZVB2Q2ZNVGdMNjJ0RFE9PQ=="
$this->assertSame("MHxnZjI5dkQ5WUV4L2Y3azd4V3c2YzJ4TkxUR1Rjb0x6ckR1RjVFbWdHSktNSmRqWDVJQT09fEdxKzdCUTEvZVB2Q2ZNVGdMNjJ0RFE9PQ==",$userEmail);
}`
Hello,
PHP will abandon mcrypt totally, so the library should replace it with openssl.
This is the official text:
The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2.
http://php.net/manual/en/migration71.deprecated.php
Thank you.
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.