There is a requirement to securely store unique usernames and passwords. Given a valid username, it is also required to validate that the password provided is correct. Which action accomplishes this task?
A.
Encrypt the username, hash the password, and store these values.
B.
Hash the username, hash the password, and store these values.
C.
Encrypt the username, encrypt the password, and store these values.
D.
Hash the username, encrypt the password, and store these values.
A is correct. Because username must be unique:
Fact #1: If you hash the username, it'll become irreversible.
Fact #2: It is possible for two different string to produce the same hash.
Which means when you hash the username, you cannot be 100% sure it's unique anymore. With encryption however you'll be able to reverse the username stored in db, and compare it with the username.
https://learn.microsoft.com/en-us/dotnet/api/system.string.gethashcode?view=net-6.0#definition
I'd go with B. You probably want to hash the username and salt+hash the password to protect the password and make it harder to figure out the username (especially if they're email addresses).
Wrong, and how you will take DevNet Pro when you say encrypt the password?
This such comments should never has been approved or existed.
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
NetGirl
Highly Voted 6 months, 4 weeks agoTeringzooi
Most Recent 7 months agoQuiShong
10 months, 2 weeks agounknown_398
7 months, 2 weeks agobboycoi
11 months, 1 week agoQuiShong
10 months, 2 weeks agomartin_k1
10 months, 1 week agoSafinok
7 months ago