added the generate method for the api key, currently mimics string