DEV Community

Discussion on: How generate a Laravel APP_KEY with OpenSSL

Collapse
bramaudi profile image
Brama Udi

Just in-case if need a PHP version:

$rand = random_bytes(32); // chiper = AES-256-CBC ? 32 : 16
echo 'base64:'.base64_encode($rand);
Enter fullscreen mode Exit fullscreen mode