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
Which key does a sender use to create a digital signature?
- The recipient's public key
- The sender's public key
- The sender's private key
- 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.
Which security properties does a valid digital signature provide?
- Integrity
- Confidentiality
- Authentication of the signer
- Availability
- 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: 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.
