Coder Social home page Coder Social logo

aes-encryption's People

Stargazers

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

Watchers

 avatar  avatar  avatar

aes-encryption's Issues

Quick Audit?

@defuse @paragonie-scott I wrote this library before defuse/php-encryption was compliant with various PSR standards. I see now that you are, and will be switching over once v2 is released as you put way more work and time into it than I am able to.

If you have time, I'd appreciate it if you could take a look at what I've done. I believe I referenced a blog one of you wrote when I was building this library. While I'm not an expert, security related issues interest me, and I'd be curious so see what I did wrong.

PHP Fatal error: Uncaught Error: Class 'AesEncrypter' not found

When using composer install or composer update it gives this warning

Package kherge/version is abandoned, you should avoid using it. No replacement was suggested.
Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.
Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.

And after that , if i use the class It gives the error Class 'AesEncrypter' not found

my composer.json is
{
"autoload": {
"psr-4": {
"\":"."
}
},
"require-dev": {
"phpunit/phpunit": "^7",
"phpdocumentor/phpdocumentor": "2.*"
},
"require": {
"tebru/aes-encryption": "^0.3.0"
}
}

Cryptographic DOOM!

http://www.thoughtcrime.org/blog/the-cryptographic-doom-principle/

http://www.daemonology.net/blog/2009-06-24-encrypt-then-mac.html

/**
* Encrypts any data using mac-then-encrypt method
*
* @param mixed $data
* @return string
*/
public function encrypt($data)
{
$serializedData = serialize($data);
$iv = $this->createIv();
$mac = $this->getMac($serializedData);
$encrypted = $this->createEncrypted($serializedData, $mac, $iv);
$encoded = $this->createEncoded($encrypted, $iv);
return $encoded;
}

Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP)

Hello,
we have a warning on php 7.4.x

Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP)

can you change these two lines

/**#@+
* Encryption constants
*/
 const ENCRYPTION_CIPHER = MCRYPT_RIJNDAEL_128;
const ENCRYPTION_MODE = MCRYPT_MODE_CBC;
/**#@-*/

By

/**#@+
* Encryption constants
*/
const ENCRYPTION_CIPHER = "rijndael-128";
const ENCRYPTION_MODE = "cbc";
/**#@-*/

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.