def decrypt(data):
    """ Given a byte string or string, returns the decrypted version of the
    data using the ENC_KEY environment variable. """
    f = Fernet(current_app.config["ENC_KEY"])
    data_bytes = _to_bytes(data)