I use laravel5.1 and it works fine on php cli. But i publish my porject to apache(version == 2.4), the problem happened.
FatalErrorException in Encryp
I am using wampserver and i had the same problem. Openssl was enabled in php.ini but there is another ini called phpForApache which has a line to enable openssl too. It worked for me.