Fix returning crypt in get_secret