Git Product home page Git Product logo

laravel-openssl-encryption's People

Contributors

gmergoil avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-openssl-encryption's Issues

Comparison for HMAC is time sensitive

The HMAC comparison is susceptible to timing attacks. A better implementation of comparison should be used to prevent this information from being leaked.

https://en.wikipedia.org/wiki/Timing_attack

https://github.com/neoxia/laravel-openssl-encryption/blob/master/src/Neoxia/LaravelOpensslEncryption/Encrypter.php#L141

A simple fix would be:

if (! \Symfony\Component\Security\Core\Util\StringUtils::equals($this->hash($payload['value']), $payload['mac'])) {
        throw new DecryptException("MAC for payload is invalid.");
}

Laravel 4.2

I'm getting this error when trying to run "composer update" on laravel 4.2

Problem 1
    - Conclusion: remove laravel/framework v4.2.6
    - Conclusion: don't install laravel/framework v4.2.6
    - Conclusion: don't install laravel/framework v4.2.5
    - Conclusion: don't install laravel/framework v4.2.4
    - Conclusion: don't install laravel/framework v4.2.3
    - Installation request for neoxia/laravel-openssl-encryption 1.0.* -> satisfiable by neoxia/laravel-openssl-encryption[1.0].
    - Conclusion: don't install laravel/framework v4.2.2
    - Conclusion: don't install laravel/framework v4.2.1
    - neoxia/laravel-openssl-encryption 1.0 requires illuminate/encryption 4.0.x -> satisfiable by illuminate/encryption[v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
    - don't install illuminate/encryption v4.0.0|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.1|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.10|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.2|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.3|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.4|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.5|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.6|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.7|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.8|don't install laravel/framework v4.2.0
    - don't install illuminate/encryption v4.0.9|don't install laravel/framework v4.2.0
    - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6].

and this one when running "composer install"

PHP Fatal error:  Class 'Neoxia\LaravelOpensslEncryption\LaravelOpensslEncryptionServiceProvider' not found in /Users/lucoceano/Documents/Projects/trip-server/google-cloud-sdk/trip/bootstrap/compiled.php on line 4219
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Neoxia\\LaravelOpensslEncryption\\LaravelOpensslEncryptionServiceProvider' not found","file":"\/Users\/lucoceano\/Documents\/Projects\/trip-server\/google-cloud-sdk\/trip\/bootstrap\/compiled.php","line":4219}}Script php artisan clear-compiled handling the post-install-cmd event returned with an error



  [RuntimeException]                                                                                                                                                         
  Error Output: PHP Fatal error:  Class 'Neoxia\LaravelOpensslEncryption\LaravelOpensslEncryptionServiceProvider' not found in /Users/lucoceano/Documents/Projects/trip-ser  
  ver/google-cloud-sdk/trip/bootstrap/compiled.php on line 4219                                                                                                              

is there any issue because I'm using laravel 4.2?

thanks

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.