Bitzu

312-50 ยท Cryptography

Cryptography tools and digital signatures

OpenSSL, GPG, hash utilities, digital signatures, certificates, and signing vs encryption.

Key points

  • OpenSSL and GPG are common toolkits; sha256sum and openssl dgst compute hashes.
  • A digital signature is made with the signer's private key over a hash of the data and verified with the public key; it gives integrity, authentication and non-repudiation but not confidentiality.
  • Encryption to a recipient uses the recipient's public key.
  • A hash published next to a download only helps if the hash itself is trusted or signed.

Practice questions

Single choice

Which key does a sender use to create a digital signature?

  1. The recipient's public key
  2. The sender's public key
  3. The sender's private key
  4. A shared session key
Show answer

Answer: C. The sender's private key

Only the signer's private key can produce a signature that the matching public key verifies. Using the public key would let anyone forge signatures.

Select all that apply

Which security properties does a valid digital signature provide?

  1. Integrity
  2. Confidentiality
  3. Authentication of the signer
  4. Availability
  5. Non-repudiation
Show answer

Answer: A. Integrity, C. Authentication of the signer, E. Non-repudiation

A signature proves the data was not changed (integrity), who signed (authentication) and that the signer cannot easily deny it (non-repudiation). It does not hide the content.

True or false

True or false: signing a document with your private key also hides its contents from other people.

Show answer

Answer: False

A signature only proves origin and integrity; the document stays readable. To hide it, encrypt it with the recipient's public key.

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 312-50 topics in this module