#!/usr/bin/env python3
"""
Generate a Fernet encryption key for token encryption.

Usage:
    python scripts/generate_encryption_key.py

Add the output to your .env file as ENCRYPTION_KEY.
"""
from cryptography.fernet import Fernet

if __name__ == "__main__":
    key = Fernet.generate_key().decode()
    print("=" * 70)
    print("Generated Encryption Key:")
    print("=" * 70)
    print(key)
    print("=" * 70)
    print("\nAdd this to your .env file:")
    print(f"ENCRYPTION_KEY={key}")
    print("\n⚠️  Keep this key secure and never commit it to git!")
