Learn. Practice. Feel prepared.
Cryptography Objective Questions and Answers - Set 3
This cryptography quiz contains carefully curated objective questions with correct answers and clear explanations. It is designed for developers, security learners, and interview preparation, covering modern encryption, hashing, authentication, and security best practices. This is part 3 of the series.
Practice Cryptography MCQs with Detailed Explanations
Answer at least 12 questions to submit and verify answers.
31 Which attack targets encrypted data patterns? Hard
Correct answer:
ECB pattern attack
ECB mode leaks patterns, making it vulnerable to pattern-based attacks.
32 Which function converts plaintext into ciphertext? Easy
Correct answer:
Encryption
Encryption converts plaintext into ciphertext to ensure confidentiality.
33 What does RSA stand for? Easy
Correct answer:
Rivest–Shamir–Adleman
RSA is named after its inventors Rivest, Shamir, and Adleman.
34 Which algorithm is suitable for hashing large files? Easy
Correct answer:
SHA-256
SHA-256 is commonly used to verify file integrity. Try it using the SHA File Hash Generator.
35 Which cryptographic tool hides data inside images? Easy
Correct answer:
Steganography
Steganography hides information within media files. You can try it using the Image Steganography Tool.
36 Which algorithm provides both encryption and authentication? Medium
Correct answer:
ChaCha20-Poly1305
ChaCha20-Poly1305 provides authenticated encryption and is widely used in modern protocols.
37 Which algorithm is recommended over MD5 for hashing? Easy
Correct answer:
SHA-256
SHA-256 is considered secure and should be used instead of MD5.
38 What is the purpose of a nonce? Medium
Correct answer:
Prevent replay attacks
A nonce ensures uniqueness and helps prevent replay attacks.
39 Which algorithm is commonly used for secure APIs? Medium
Correct answer:
JWT with HS256
JWT with HS256 is commonly used for securing APIs. You can validate tokens using the JWT Validator.
40 Which cryptographic property ensures secrecy? Easy
Correct answer:
Confidentiality
Confidentiality ensures that information is accessible only to authorized parties.
41 Which attack attempts all possible keys? Easy
Correct answer:
Brute-force attack
Brute-force attacks try every possible key until the correct one is found.
42 Which cryptographic algorithm is used for signing JWTs? Medium
Correct answer:
HMAC
JWTs are commonly signed using HMAC or RSA-based algorithms.
43 Which algorithm provides forward secrecy? Hard
Correct answer:
Ephemeral Diffie-Hellman
Ephemeral Diffie-Hellman provides forward secrecy by generating temporary session keys.
44 What does ECC offer compared to RSA? Medium
Correct answer:
Same security with smaller keys
ECC provides equivalent security to RSA with much smaller key sizes.
45 Which algorithm should NOT be used for password storage? Easy
Correct answer:
MD5
MD5 is insecure for password storage due to fast hashing and collision vulnerabilities.