I need to generate a API key and Secret that would be stored in a Redis server. What would be the best way to generate a key and secret?
I am develop a Django-tastyp
you can also use following module to generate random string
1 - os.urandom(64).encode('hex') #from os module 2 - uuid.uuid4() # from uuid module 3 - get_random_string(length=32) #from django.utils.crypto 4 - secrets.token_hex(64) #from secrets >= python 3.6