CC ยท Data security
Hashing and digital signatures
One-way hashes for integrity, salting, digital signatures and certificates at concept level.
Key points
- Hash function: turns any input into a fixed-size digest; one-way, and any tiny change gives a very different digest, so it checks integrity.
- Passwords: stored as salted hashes; a unique random salt defeats precomputed tables.
- Digital signature: made with the sender's private key, verified with the public key; gives integrity, authentication, non-repudiation.
- Certificate: binds a public key to an identity.
Practice questions
Which security property is a hash mainly used to check?
- Confidentiality
- Availability
- Integrity
- Physical safety
Show answer
Answer: C. Integrity
Comparing digests reveals whether data changed, which is integrity. A hash does not hide content, so it is not about confidentiality.
Which properties describe a good cryptographic hash function?
- Output has a fixed size regardless of input size
- The original input can be recovered with a key
- Practically impossible to reverse to the input
- Output grows as the input grows
- Requires a shared secret to compute
Show answer
Answer: A. Output has a fixed size regardless of input size, C. Practically impossible to reverse to the input
Good hashes are one-way and give a fixed-size output with a very different digest after a small input change. They are not reversible with a key.
True or false: a hashed password can be decrypted back to the original with the right key.
Show answer
Answer: False
False. Hashing is one-way and uses no key to reverse; attackers can only guess inputs and compare digests.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
