web: use sha1 for token generation instead of md5(disabled by FIPS)
fixes: #2291
This commit is contained in:
parent
fc4cb3d37e
commit
0a61104280
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ def _genToken(environ, tstamp=None):
|
|||
tstamp = _truncTime()
|
||||
value = user + str(tstamp) + environ['koji.options']['Secret'].value
|
||||
value = value.encode('utf-8')
|
||||
return hashlib.md5(value).hexdigest()[-8:]
|
||||
return hashlib.sha1(value).hexdigest()[-8:]
|
||||
|
||||
|
||||
def _getValidTokens(environ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue