On advice from @martijnreening, changed token encryption to Base64 to save data