So I'm trying to get encryption working in Lumen, just as it would in Laravel.
I have set the API_KEY in .env and it is loaded in bootstrap/app, however I am still getting the following exception on decrypt:
No supported encrypter found. The cipher and / or key length are invalid.
I've also tried setting the key and cipher value in bootstrap/app, but I'm not sure if I have the syntax correct.
@bashy Yep, I'm running a laravel 5.1 instance on the same machine, encryption is working fine on there. As the cipher is AES-256-CBC, I believe the string should be 32 characters, as it is currently. And no, APP_KEY does not print, but I think this might have something to do with the differences between Lumen and Laravel. For instance, I load my .env in bootstrap/app, the configuration seems to differ.
@bugysha Unfortunately, the key namespace does not exist in Lumen.