comparison roundup/admin.py @ 7375:9bd7ed918121

issue2551253 - Modify password PBKDF2 method to use SHA512 Implement new PBKDF2-SHA512 more secure password hash function. Intended to be future default once I get more feedback. upgrading.txt: added doc for using it now. reference.py: Added enabling future features to use case for interfaces.py. admin.py: Changed perftest password command to use the default password function. Can be used to verify that new hash is enabled properly.
author John Rouillard <rouilj@ieee.org>
date Sat, 20 May 2023 15:34:13 -0400
parents a210f4437b49
children 40cab56a97f1
comparison
equal deleted inserted replaced
7374:72de757edf78 7375:9bd7ed918121
1403 1403
1404 """ 1404 """
1405 from roundup.anypy.time_ import perf_counter 1405 from roundup.anypy.time_ import perf_counter
1406 1406
1407 props = {"rounds": self.db.config.PASSWORD_PBKDF2_DEFAULT_ROUNDS, 1407 props = {"rounds": self.db.config.PASSWORD_PBKDF2_DEFAULT_ROUNDS,
1408 "scheme": password.Password.known_schemes[0]} 1408 "scheme": password.Password.default_scheme}
1409 1409
1410 print_supported_schemes = lambda: print( 1410 print_supported_schemes = lambda: print(
1411 "Supported schemes (default is first, case " 1411 "Supported schemes (default is first, case "
1412 "sensitive):\n %s." % 1412 "sensitive):\n %s." %
1413 ", ".join(password.Password.known_schemes)) 1413 ", ".join(password.Password.known_schemes))

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