Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PT0-002 All Questions
Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

CompTIA PenTest+ PT0-002 Question # 95 Topic 10 Discussion

PT0-002 Exam Topic 10 Question 95 Discussion:
Question #: 95
Topic #: 10

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


Get Premium PT0-002 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.