Browse exams / CompTIA Security+

Encryption and hashing

Use encryption for reversible confidentiality and hashing for a one-way digest.

Study and track progressDownload lesson PDF

How to approach it

Identify whether the original data needs to be recovered or whether you are comparing digests.

Worked example

Encrypt a backup so authorized operators can restore it with a key. Compare a trusted file hash to check whether a download changed.

Common mistake

A matching hash alone cannot establish who supplied it unless the expected digest is trusted.

Practice questions

  1. What should secure password verification compare?

    Show answer and explanation

    A stored password hash produced with a suitable password hashing scheme.

  2. A backup needs to be read later by an authorized user. Which operation fits?

    Show answer and explanation

    Encryption.

  3. Can comparing file hashes detect an accidental file change?

    Show answer and explanation

    Yes, when you compare with a trusted expected digest.

Official reference

CompTIA Security+ exam information

What to study next