generate keys for secure subscription system