All ToolsClient-Side Utility

Laravel APP_KEY Generator

Generate secure APP_KEY for Laravel applications

Configuration

About Laravel APP_KEY

  • • APP_KEY: Critical encryption key for Laravel applications
  • • Used for encrypting sessions, cookies, and sensitive data
  • • Auto-generated with base64 encoding
  • • Must be unique for each Laravel installation
  • • Format: base64:... (base64 encoded 32-byte key)
  • • Never commit to version control or share publicly
  • • Store in .env file - NEVER in config files in production

Setup Instructions

1. Manual setup in .env:

APP_KEY=base64:your-generated-key-here

2. Or use artisan command:

php artisan key:generate

3. In config/app.php:

'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',