comparison roundup/password.py @ 7241:78c3f4aced76

issue2551265 - deprecate SSHA password hash method Users using SSHA passwords will have their passwords transprently upgraded to PBKDF2 derived hash on next login.
author John Rouillard <rouilj@ieee.org>
date Sat, 01 Apr 2023 20:48:02 -0400
parents 594b562ca99c
children 57f34b0b912c
comparison
equal deleted inserted replaced
7240:594b562ca99c 7241:78c3f4aced76
393 1 393 1
394 >>> 'not sekrit' != p 394 >>> 'not sekrit' != p
395 1 395 1
396 """ 396 """
397 397
398 deprecated_schemes = ["SHA", "MD5", "crypt", "plaintext"] 398 deprecated_schemes = ["SSHA", "SHA", "MD5", "crypt", "plaintext"]
399 experimental_schemes = ["PBKDF2S5"] 399 experimental_schemes = ["PBKDF2S5"]
400 known_schemes = ["PBKDF2", "SSHA"] + experimental_schemes + \ 400 known_schemes = ["PBKDF2"] + experimental_schemes + \
401 deprecated_schemes 401 deprecated_schemes
402 402
403 def __init__(self, plaintext=None, scheme=None, encrypted=None, 403 def __init__(self, plaintext=None, scheme=None, encrypted=None,
404 strict=False, config=None): 404 strict=False, config=None):
405 """Call setPassword if plaintext is not None.""" 405 """Call setPassword if plaintext is not None."""

Roundup Issue Tracker: http://roundup-tracker.org/