List of questions
Related questions
Question 286 - PT0-002 discussion
A penetration tester discovered a code repository and noticed passwords were hashed before they were stored in the database with the following code? salt = '123' hash = hashlib.pbkdf2_hmac('sha256', plaintext, salt, 10000) The tester recommended the code be updated to the following salt = os.urandom(32) hash = hashlib.pbkdf2_hmac('sha256', plaintext, salt, 10000) Which of the following steps should the penetration tester recommend?
A.
Changing passwords that were created before this code update
B.
Keeping hashes created by both methods for compatibility
C.
Rehashing all old passwords with the new code
D.
Replacing the SHA-256 algorithm to something more secure
Your answer:
0 comments
Sorted by
Leave a comment first