Code Monkey home page Code Monkey logo

laravel4-php71-encrypter's People

Contributors

tomgrohl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

laravel4-php71-encrypter's Issues

Laravel 4.2 using MCRYPT_RIJNDAEL_128 can decrypt session

I configured my main app (call it core) which is laravel 4.2 which handles login for all my other apps(also laravel 4.2) too to use the package.
I realized that the other apps which I had not yet configured to AES-256-CBC were still being able to decrypt the session.

I am using your package because I wanted to connect a laravel 5.4 app to use the session from the core but it is also not working.

My session is saved in the database.

issue in Cookie\Guard::__construct() after complete all steps

Hello, I have the following error after complete all steps and test my App.
Could you help me, please?

Argument 2 passed to Illuminate\Cookie\Guard::__construct() must be an instance of Illuminate\Encryption\Encrypter, instance of Tomgrohl\Laravel\Encryption\Encrypter given

In composer.json:
"tomgrohl/laravel4-php71-encrypter": "^2.0@dev"

PHP Version: 5.6.30

Thanks!

README change

If you use the composer statement

composer require tomgrohl/laravel4-php71-encrypter

You get the 2.0@dev version which causes the error below as reported by @hugossvoboda in this ticket, which you have quite rightly answer.

issue in Cookie\Guard::__construct() after complete all steps

#12

May I suggest changing the line this, to avoid this issue in the future

composer require tomgrohl/laravel4-php71-encrypter:1.1.*

Unable to get this working

Sorry for posting as an issue, but I'm unable to get this to work, I'm still just seeing "Mcrypt PHP extension required."

I've added this package and updated composer. I added the provider and changed the cypher but no dice.. I even tried the steps at https://medium.com/@ysbilgin/running-laravel-4-2-project-on-php-7-3-or-7-4-b18e41caa0b

PHP version - 7.4.4
composer.json -
"require": {
"laravel/framework": "4.2.22",
"tomgrohl/laravel4-php71-encrypter": "^1.1"
},

I've tried adding extension=mcrypt.so to my php.ini even.

Any suggestions one what I might be mssing?

Still a problem with Artisan?

Using your encryptor solved my problems with webserver access, but any cli call to artisan still gives me 'Mcrypt PHP extension required.' Is there a workaround for that?

Unable to use cipher AES-256-CBC

Hi,

Shouldn't you also pass the $cipher variable to the parent construct as well? If not it will be using the default cipher which is AES-128-CBC since no variable was pass
image

PHP 7.2 support

Hello there,

could this be made run with PHP 7.2 as well?

thanks...

Exception thrown when key length is 32

If you set the cipher to be AES-256-CBC and update the key so that it has 32 characters, then the code in https://github.com/tomgrohl/laravel4-php71-encrypter/blob/1.1/src/Tomgrohl/Laravel/Encryption/EncryptionServiceProvider.php#L18 will throw an exception since you're calling new Encrypter() without setting the cipher. I suggest changing the logic to this to fix this problem:

            if ($app['config']->has('app.cipher')) {
                $encrypter = new Encrypter(
                    $app['config']['app.key'],
                    $app['config']['app.cipher']
                );
            } else {
                $encrypter = new Encrypter($app['config']['app.key']);
            }

Does it really need PHP 7.1 to run?

I want my project to be run on both PHP 5.6 and newer versions of php, but this package requires PHP 7.1. Does it really necessary?

Edit: Or at least it should run on PHP 7.0.

Cookie\Guard expects Illuminate\Encryption\Encrypter

I'm getting this error.

Type error: Argument 2 passed to Illuminate\Cookie\Guard::__construct() must be an instance of Illuminate\Encryption\Encrypter, instance of Tomgrohl\Laravel\Encryption\Encrypter given

Can anyone help me?

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.