Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask secret key generator

# The secret key is needed to keep the client-side sessions secure.
# It's used for flask applications
# You can generate some random key as below:

>>> import os
>>> os.urandom(24)
'xfd{Hxe5<x95xf9xe3x96.5xd1x01O<!xd5xa2xa0x9fR"xa1xa8'

# Just take that key and copy/paste it into your config file

SECRET_KEY = 'xfd{Hxe5<x95xf9xe3x96.5xd1x01O<!xd5xa2xa0x9fR"xa1xa8'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #secret #key #generator
ADD COMMENT
Topic
Name
6+3 =