searx: Increase the secret key length to 64 bytes

Although 32 bytes is sufficient, 64 bytes has been recommended by a few sources.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-02-26 18:40:46 +05:30
parent 619c3cf79c
commit f10f0438df
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -74,7 +74,7 @@ def _copy_uwsgi_configuration():
def _generate_secret_key(settings):
"""Generate a secret key for the Searx installation."""
secret_key = secrets.token_hex(32)
secret_key = secrets.token_hex(64)
settings['server']['secret_key'] = secret_key