hard
Single Answer
0

Which of the following options will provide the most secure salt?

Answer Options

A

Set a salt value and store it in a database

B

Set a salt value and store it in the program code

C

Generate a unique salt for each hashed entry

D

Generate a unique salt value every time a value is used

Correct Answer: C

Explanation

Generating a unique salt for each hashed entry is the most secure option among those listed. Storing a fixed salt in a database or in code reduces the complexity of the salted information, making it possible for an attacker to acquire the single salt and then attack the stored hashes. Generating a unique salt every time a value is used is impractical due to the rate of change.