Cryptography Fundamentals MCQs: 12 Solved Questions on Keys, Ciphers and Hashing
Solve 12 grounded cryptography questions, then use two small worked ciphers to separate confidentiality, integrity, authentication and key management.
KnowledgeGate Team
Exam prep & CS education

Cryptography questions reuse a small vocabulary, but distractors swap confidentiality, integrity, authentication and non-repudiation; they also tempt you to confuse an algorithm with a key. Plaintext becomes ciphertext under an algorithm and key; hashes reveal changes, signatures bind origin, HSMs protect keys, RSA separates public and private operations, and Kerckhoffs' principle keeps the algorithm open. Answer each question in words before revealing the answer, because option letters are shuffle-sensitive. IBPS PO & SO IT Exam Preparation places these distinctions within broader exam preparation.
Cryptography fundamentals to fix before the MCQs

Item | Input | Operation or key | Output | Main role |
|---|---|---|---|---|
Plaintext | Original data | None yet | Readable input | Message before protection |
Encryption | Plaintext | Algorithm plus key | Ciphertext | Confidentiality |
Decryption | Ciphertext | Required key | Recovered plaintext | Reverse authorised transformation |
Hash | Any-length input | Hash function, no decryption key | Fixed-length digest | Change detection |
Digital signature | Message or its digest | Sign private, verify public | Verifiable signature | Origin authentication, integrity and non-repudiation |
With Caesar shift key k = 3, C -> F, A -> D and T -> W, giving plaintext CAT -> ciphertext FDW. Reversing each shift by 3 recovers CAT. Caesar is a teaching cipher, not a modern security recommendation.
For toy RSA, take p = 3, q = 11, so n = 33 and phi(n) = (3 - 1)(11 - 1) = 20. Choose public e = 3 and private d = 7, since 3 x 7 = 21 = 1 mod 20. For m = 4, encryption gives c = 4^3 mod 33 = 64 mod 33 = 31. Decryption gives 31^7 mod 33 = (-2)^7 mod 33 = -128 mod 33 = 4. These insecure primes explain the key roles, not deployment.
Use RSA Algorithm MCQs to drill modular inverses and exponentiation with several key pairs. In the figure below, the toy pair instead makes receiver public-key encryption and receiver private-key decryption visible beside a shared Caesar key.

Questions 1-3: plaintext, cryptosystem components and confidentiality
Question 1
The process of converting plaintext into ciphertext is called:
Hashing
Encryption
Encoding
Compression
Answer: Encryption
The CAT -> FDW example converts readable plaintext to ciphertext under an algorithm and key. Hashing creates a digest, encoding changes representation for compatibility, and compression aims to reduce size. None of those names this reversible confidentiality transformation. Retry the encryption question.
Question 2
Which of the following is NOT a component of a cryptographic system?
Encryption algorithm
Secret key
Firewall
Ciphertext
Answer: Firewall
Test each option against the transformation chain. The algorithm, key and resulting ciphertext belong inside the cryptosystem. A firewall filters network traffic at a security boundary and remains important, but it is not a component of the encryption operation. Retry the cryptosystem-component question.
Question 3
UP Police, Computer Science, Paper 2 - Subject Oriented, 2023
What is the primary purpose of encryption in E-banking ?
To allow easy access to bank accounts
To speed up transactions
To protect sensitive information from unauthorized access
To verify the identity of users
Answer: To protect sensitive information from unauthorized access
Confidentiality is the direct purpose: intercepted credentials or transaction data should remain unreadable without the decryption key. Identity verification is authentication and may use cryptographic mechanisms, but it is not the primary purpose asked here. Ease of access and speed are not security goals. Review the e-banking encryption question.
Questions 4-6: non-repudiation, symmetric ciphers and key management
Question 4
Which of the following ensures non-repudiation in a system?
Hashing
Digital Signature
VPN
Firewall
Answer: Digital Signature
A digital signature binds a signer-controlled private-key operation to the message, while verification uses the corresponding public key. A hash alone does not identify the origin, a VPN protects a communication channel, and a firewall filters traffic. The signature is therefore the option that supports non-repudiation. Retry the non-repudiation question.
Use Authentication and Digital Signature MCQs for signature verification, certificates and digest-size arithmetic. The question above only separates non-repudiation from hashing, VPNs and firewalls.
Question 5
Which cryptographic algorithm is symmetric?
RSA
ECC
DES
DSA
Answer: DES
Classify these by key model, not abbreviation. DES uses one shared secret key for encryption and decryption, while RSA and ECC are public-key families and DSA is a public-key signature algorithm. DES is the historical textbook answer, not a recommendation for a current deployment. Retry the symmetric-algorithm question.
Question 6
The key management issue in cryptography refers to:
Algorithm efficiency
Secure distribution and storage of keys
Size of ciphertext
Hardware acceleration
Answer: Secure distribution and storage of keys
Suppose Alice and Bob use shared key K1 but transmit K1 in readable form. The cipher's mathematical strength can no longer protect that exchange. Key management keeps the right key available to authorised parties while preventing exposure during distribution and storage; speed, ciphertext size and acceleration are separate engineering concerns. Retry the key-management question.
Questions 7-9: public-key agreement, HSMs and hashing
Question 7
UPPSC Polytechnic Lecturer, Computer Science, 2022
Which is the public key cryptographic algorithm among the following?
Diffie–Hellman key agreement protocol
Key generation algorithm
Signalling algorithm
None of the above
Answer: Diffie–Hellman key agreement protocol
Diffie-Hellman is a public-key key-agreement protocol that lets two parties derive a shared secret across an insecure channel. It is not ordinarily a direct message-encryption algorithm, but it is the only specific public-key cryptographic construction among these options. The other two algorithm labels are generic. Review the public-key construction question.
Question 8
TPSC, Computer Science, Assistant CEO, 2024
What is the primary purpose of a Hardware Security Module (HSM) in the context of secure programming ?
To protect against DDoS attacks .
To store and manage cryptographic keys securely
To optimize code execution speed
To monitor network traffic
Answer: To store and manage cryptographic keys securely
An HSM provides a protected boundary for cryptographic key storage and operations, reducing unnecessary exposure of private or secret key material to ordinary application code. DDoS mitigation, code optimisation and traffic monitoring are separate functions. They do not answer the key-management purpose in the stem. Review the HSM question.
Question 9
Which cryptographic technique ensures data integrity by generating a fixed-length output?
कौन-सी क्रिप्टोग्राफिक तकनीक निश्चित लंबाई (fixed-length) का आउटपुट उत्पन्न करके डेटा की अखंडता (data integrity) सुनिश्चित करती है?
Encryption
एन्क्रिप्शन
Hashing
हैशिंग
Decryption
डिक्रिप्शन
Compression
कंप्रेशन
Answer: Hashing / हैशिंग
A hash maps an input of arbitrary length to a fixed-length digest, so recomputing and comparing that digest can reveal a changed message. Encryption and decryption address confidentiality, while compression addresses size. An unauthenticated hash alone cannot stop an attacker from replacing both the message and digest, but this MCQ tests the basic integrity role. Retry the hashing question.
Questions 10-12: asymmetric advantage, receiver keys and Kerckhoffs' principle
Question 10
Which advantage does asymmetric encryption provide over symmetric encryption?
असिमेट्रिक एन्क्रिप्शन को सिमेट्रिक एन्क्रिप्शन की तुलना में कौन-सा लाभ मिलता है?
Faster encryption speed / तेज़ एन्क्रिप्शन गति
No need to securely share a secret key beforehand / पहले से secret key सुरक्षित रूप से साझा करने की आवश्यकता नहीं
Lower computational cost / कम कम्प्यूटेशनल लागत
Smaller key sizes / छोटे कुंजी आकार (key sizes)
Answer: No need to securely share a secret key beforehand / पहले से secret key सुरक्षित रूप से साझा करने की आवश्यकता नहीं
In a public-key system, the public key can be distributed openly while the private key remains with its owner. The parties need no secure channel for a pre-shared secret. Public-key operations are generally costlier and slower, while raw key-size comparisons across algorithm families are not a universal advantage. Retry the asymmetric-advantage question.
Question 11
In a public key system, confidentiality is achieved by encrypting with:
Sender’s private key
Receiver’s public key
Receiver’s private key
Sender’s public key
Answer: Receiver’s public key
The sender applies the receiver's public key (e=3,n=33) to m=4 and gets c=31; the receiver applies private (d=7,n=33) and recovers 4. A sender-private-key operation belongs to signing, not confidentiality. Private keys are not distributed to senders. Retry the receiver-key question.
Use Asymmetric Key Cryptography MCQs to extend the receiver-key rule into PKI, key exchange and algorithm classification. The question above tests only the confidentiality direction.
Question 12
DSSSB, Computer Science, 2021
Which of the following statement(s) is/are true regarding cryptography?
Statements:
I. Cipher text is encrypted text transformed from plain text using an encryption algorithm.
II. According to Kerckhoff’s principle, all algorithms must be private and only the keys are secret.
Only I
Only II
Both I and II
Neither I nor II
Answer: Only I
Statement I correctly names ciphertext as encrypted plaintext. Statement II reverses Kerckhoffs' principle: security should survive a public algorithm when the key stays secret. Only Statement I holds, just as n=33,e=3 can be public while d=7 stays private. Review the live cryptography module for this question.
A reusable key-and-goal table for cryptography MCQs
Question clue | Security goal or mechanism | Key fact | Worked value |
|---|---|---|---|
plaintext -> ciphertext | Encryption | Algorithm plus key |
|
fixed-length output | Hashing | No decryption key | Changed input gives a different digest |
cannot deny origin | Digital signature | Sign private, verify public | Signer A uses private key A |
confidential public-key message | Encryption | Receiver public, receiver private |
|
secure key custody | Key management or HSM | Distribute and store safely | Shared key |
Traps: treating hashing as encryption, using sender's private key for confidentiality, and keeping algorithms secret under Kerckhoffs' principle. Diffie-Hellman establishes a shared key, not direct message encryption.
Cryptography answer map and next practice step
Q1-Q3 address vocabulary, components and confidentiality; Q4-Q6 address goals and shared-key handling; Q7-Q9 address public-key support and hashing; Q10-Q12 address asymmetric keys and open-algorithm design.
Your answer list is: encryption; firewall; protect sensitive information; digital signature; DES; secure key distribution and storage; Diffie–Hellman; secure HSM key management; hashing; no pre-shared secret; receiver public key; only I.
Redo without notes, explaining every rejected option. Then use the BTSC Lab Assistant (CS) 2026 Course for structured security fundamentals.
Keep learning
Cryptography Fundamentals and Cryptosystems: RSA, Security Goals and Exam Traps
Build a clean mental model of cryptography, then follow Caesar and toy RSA calculations step by step. The guide also separates encryption, hashing, MACs and signatures.
Symmetric Key Cryptography MCQs: 12 Solved Block and Stream Cipher Questions
Solve 12 symmetric key cryptography questions covering AES, DES, key count, cipher modes, parameter matching and a full columnar transposition trace.
Physical Security and Cryptography Basics: Controls, Ciphers and Worked Examples
Connect physical and logical security through Lab L-07. Learn layered controls, calculate residual risk, trace XOR, compare SHA-256 outputs and choose the right primitive.
Network Security and Cryptography in Computer Networks: How Ciphers, Key Exchange, and TLS Actually Work
Cipher internals for computer networks: ECB vs CBC block modes, HMAC construction, square-and-multiply RSA, a Diffie-Hellman man-in-the-middle, and TLS.





