# Generated Integration Keys for Laravel-Python Connection
# Generated on: 2025-10-02
# IMPORTANT: Keep this file secure and do not commit to version control!

# ============================================
# SHARED KEYS (Same in both Laravel & Python)
# ============================================

# API Key for Laravel-Python communication
SHARED_API_KEY=9b902b45f6271c2db9b8863bf5ace6b58a68124096556022cb35243ccea73544

# Callback Secret for webhook verification
SHARED_CALLBACK_SECRET=7f3d8e9c2a1b4f6e8d7c5a3b9e1f4d2c8a6b5e3f7d9c1a4b8e6f2d5c3a7b9e1f

# ============================================
# PYTHON-ONLY KEYS (pytho/.env)
# ============================================

# Application Secret Key
SECRET_KEY=a5f8d3e9c7b2a1f6e4d8c9b7a5f3e1d9c8b6a4f2e7d5c3b1a9f8e6d4c2b7a5f3

# Encryption Key (32 bytes = 64 hex chars)
ENCRYPTION_KEY=3e7d9c5a1f8b6e4d2c9a7f5e3d1b9c8a

# JWT Secret
JWT_SECRET=f9e7d5c3a1b8f6e4d2c9a7f5e3d1b9c8a6f4e2d7c5a3b1f9e8d6c4a2b7f5e3d1

# ============================================
# INSTRUCTIONS
# ============================================

Update these keys in the following files:

1. PYTHON (.env file):
   pytho/.env:
   ---
   SECRET_KEY=a5f8d3e9c7b2a1f6e4d8c9b7a5f3e1d9c8b6a4f2e7d5c3b1a9f8e6d4c2b7a5f3
   ENCRYPTION_KEY=3e7d9c5a1f8b6e4d2c9a7f5e3d1b9c8a
   JWT_SECRET=f9e7d5c3a1b8f6e4d2c9a7f5e3d1b9c8a6f4e2d7c5a3b1f9e8d6c4a2b7f5e3d1
   LARAVEL_API_KEY=9b902b45f6271c2db9b8863bf5ace6b58a68124096556022cb35243ccea73544
   LARAVEL_CALLBACK_SECRET=7f3d8e9c2a1b4f6e8d7c5a3b9e1f4d2c8a6b5e3f7d9c1a4b8e6f2d5c3a7b9e1f

2. LARAVEL (.env file):
   Laravel/.env:
   ---
   PYTHON_API_KEY=9b902b45f6271c2db9b8863bf5ace6b58a68124096556022cb35243ccea73544
   PYTHON_CALLBACK_SECRET=7f3d8e9c2a1b4f6e8d7c5a3b9e1f4d2c8a6b5e3f7d9c1a4b8e6f2d5c3a7b9e1f
   PYTHON_API_URL=http://localhost:8000

# ============================================
# SECURITY NOTES
# ============================================

1. These keys are randomly generated and secure
2. Keep this file private - add to .gitignore
3. In production, use environment-specific keys
4. Rotate keys periodically for security
5. Never share these keys publicly

# ============================================
# VERIFICATION
# ============================================

After updating, verify the connection:

1. Start Python service:
   cd pytho
   docker-compose up -d

2. Test from Laravel:
   cd Laravel
   php artisan tinker
   >>> app(\App\Services\PythonApiService::class)->checkHealth()

Expected output: true