def METHOD_NAME():
	if "encryption_key" not in frappe.local.conf:
		from frappe.installer import update_site_config
		encryption_key = Fernet.generate_key().decode()
		update_site_config("encryption_key", encryption_key)
		frappe.local.conf.encryption_key = encryption_key
	return frappe.local.conf.encryption_key