StudyToCert

All certifications / Security+ / Lessons

CompTIA Security+ SY0-701 · Domain 1: General security concepts

Hashing, salting, key stretching

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

A hash function takes input of any size and produces a fixed-length output called a hash, digest or fingerprint. The same input always gives the same hash, but even a one-character change produces a completely different result. A good cryptographic hash is one-way, meaning you cannot work backward from the hash to the input, and collision-resistant, meaning it is infeasible to find two different inputs with the same hash. Hashing protects integrity, not confidentiality: it does not hide data, it lets you detect whether data has changed. It is also the foundation of how systems should store passwords.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Security+ for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Security+ study plan