medium
Single Answer
0Frankie wants to validate the integrity of a file by comparing it against an original copy. Which of the following solutions both fulfills this requirement and avoids known security issues?
Answer Options
A
Hash the original file and the current file using MD5 and compare the hashes.
B
Hash the original file and the current file using SHA-1 and compare the hashes.
C
Hash the original file and the current file using SHA-256 and compare the hashes.
D
Hash the original file and the current file using AES and compare the hashes.
Correct Answer: C
Explanation
SHA-256 is the current, secure hashing standard. While it is unlikely that a malicious actor would exploit known flaws in MD5 and SHA-1, in most normal operations SHA-256 remains the preferred option when it is available. The Advanced Encryption Standard (AES) is used for encryption, not hashing.