CompTIA Security+ (SY0-701) — Question 525

An engineer needs to ensure that a script has not been modified before it is launched. Which of the following best provides this functionality?

Answer options

Correct answer: C

Explanation

Hashing is the best method for verifying that a script has not been altered, as it creates a unique checksum that can be compared against the original. Masking and obfuscation do not provide integrity checks, and encryption serves to protect data confidentiality rather than to verify modifications.