Giter VIP home page Giter VIP logo

phpencryptdata's People

Contributors

archwisp avatar johnkary avatar umpirsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phpencryptdata's Issues

Error Bytes Size

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.

Add length check for key and IV size

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.

Cant pass PHPUNIT assertSame

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);
  }`

Move from mcrypt to openssl

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.