def decrypt(data: str) -> dict:
    """Decrypt dictionary data.

    Args:
    ----
        data (str): The encrypted data.

    Returns:
    -------
        dict: The decrypted data.
    """
    f = get_encryption_fernet()
    # Get encrypted data, decrypt it, decode to string, parse JSON
    decrypted_bytes = f.decrypt(data)
    return json.loads(decrypted_bytes.decode())
Decrypt dictionary data.

    Args:
    ----
        data (str): The encrypted data.

    Returns:
    -------
        dict: The decrypted data.
    
backend/airweave/core/credentials.py