CPSA ยท Cryptography for testers
Asymmetric cryptography and RSA
RSA, public and private keys, key exchange and digital signatures.
Key points
- Asymmetric crypto: a shareable public key and a secret private key.
- Encryption: anyone encrypts to your public key, only your private key decrypts.
- Signatures: sign with the private key, anyone verifies with the public key.
- RSA: rests on factoring a large modulus; 2048 bits is a common minimum.
- Slow, so it protects a symmetric session key, not bulk data.
- Diffie-Hellman: agrees a shared secret over an open channel.
Practice questions
Which key does a sender use to create a digital signature?
- The recipient's public key
- The sender's private key
- The sender's public key
- A shared symmetric key
Show answer
Answer: B. The sender's private key
Signatures are created with the signer's private key so that anyone holding the matching public key can verify them. Encryption to a recipient is the case that uses the recipient's public key.
Which of these are asymmetric (public-key) algorithms?
- RSA
- AES
- Diffie-Hellman
- RC4
- ECDSA
Show answer
Answer: A. RSA, C. Diffie-Hellman, E. ECDSA
RSA, Diffie-Hellman and ECDSA are public-key algorithms. AES and RC4 are symmetric.
A digital signature keeps the content of a message confidential.
Show answer
Answer: False
False. A signature proves who signed and that the content was not changed, but the message itself stays readable unless it is also encrypted.
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.
