Bitzu

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

Single choice

Which security property is a hash mainly used to check?

  1. Confidentiality
  2. Availability
  3. Integrity
  4. 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.

Select all that apply

Which properties describe a good cryptographic hash function?

  1. Output has a fixed size regardless of input size
  2. The original input can be recovered with a key
  3. Practically impossible to reverse to the input
  4. Output grows as the input grows
  5. 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

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.

Download on the App StoreGet it on Google Play

More CC topics in this module