def get_encryption_fernet() -> Fernet:
    """Get Fernet instance for encryption/decryption.

    Returns:
    -------
        Fernet: The Fernet instance.
    """
    # Convert string key to bytes and create Fernet instance
    key = settings.ENCRYPTION_KEY.encode()
    return Fernet(key)
Get Fernet instance for encryption/decryption.

    Returns:
    -------
        Fernet: The Fernet instance.
    
backend/airweave/core/credentials.py