Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
Cryptography and Information Security important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Security tools: spoofing, footprinting, scanning and DoS tools
Asked 10 times in 2020, 2022, 2023, 2025 · Unit 5
From the papers
“Explain different types of DoS attack understanding tools.” (2022, 2023)
“Explain in short different types of Trojans detection tools.” (2022)
“Discuss various spoofing and foot printing tools.” (2020)
The short answer
Security tools are programs that testers and attackers use to collect information about a network, find weak points or test how a system stands up to attack. The syllabus groups them as spoofing, footprinting, scanning, DoS, Trojan detection and steganography tools.
Write these points
Footprinting tools collect public facts about a target before an attack: domain owner, IP range, mail servers. Examples: whois, nslookup, Maltego, theHarvester.
Spoofing tools fake an identity such as an IP address, MAC address or ARP entry. Examples: arpspoof, Ettercap, macchanger.
Scanning tools find live hosts, open ports and services. Examples: Nmap, Angry IP Scanner. LAN scanner tools list every device on a local network.
Vulnerability scanning tools match running services against known weaknesses. Examples: Nessus, OpenVAS, Nikto for web servers.
DoS attack understanding tools generate heavy traffic to test how a server copes. Examples: hping3, LOIC. A UDP flood sends many UDP packets to random ports so the host spends its time replying with ICMP errors.
Trojan detection tools look for hidden programs and unknown open ports. Examples: netstat, TCPView, Process Explorer, antivirus scanners.
Steganalysis tools look for data hidden inside images or audio. Examples: StegExpose, stegdetect.
Group
Purpose
Example
Footprinting
Collect public facts
whois, Maltego
Scanning
Find hosts and ports
Nmap
Vulnerability
Find known weaknesses
Nessus
DoS
Test load handling
hping3
Trojan detection
Find hidden programs
TCPView
Ethics.
Use these tools only on systems you own or are allowed to test. Using them on others is an offence under the IT Act 2000.
Real-life example
Before a bank's app goes live, its security team runs Nmap and Nessus on its own servers. They fix every open port and old software version the tools report, so attackers find nothing easy.
Figure 1.1: Phases where these tools are used
Same or opposite: footprinting and scanning
Point
Footprinting
Scanning
Same or opposite
Contact with the target
Little or none (public data)
Direct probes
Opposite
Finds
Domains, IP ranges, people
Live hosts, ports, services
Opposite
Example tool
whois, Maltego
Nmap
Opposite
Step of an attack or test
Yes, first
Yes, second
Same
Exam tip. Group the tools by purpose and name two examples for each. A table of group, purpose and example earns most of the marks. Add one line on legal use.
Q2. Hash functions, MD5, SHA and message authentication
Asked 9 times in 2020, 2022, 2023, 2025 · Unit 3
From the papers
“With a neat diagram, explain the steps of the SHA algorithm (SHA-512) for a message of less than 2¹²⁸ bits giving a 512-bit digest.” (2025)
“Define Hash Function. Differentiate between MD5 and SHA algorithms with suitable examples.” (2025)
“What are the types of attacks addressed by message authentication? What are the two levels of functionality that comprise a message authentication or digital signature mechanism?” (2023)
The short answer
A hash function maps a message of any length to a short fixed-length message digest that is one-way and collision resistant. MD5 and SHA are common ones, used for message authentication and digital signatures.
Write these points
Properties of a cryptographic hash
Works on input of any size. Output has a fixed size.
Easy to compute H(M).
Preimage resistant (one-way): given h, it is hard to find M with H(M) = h.
Second preimage resistant: given M, it is hard to find another M′ with the same hash.
Collision resistant: it is hard to find any two messages with the same hash. By the birthday paradox an n-bit hash needs about 2ⁿ⸍² tries, so SHA-512 needs about 2²⁵⁶.
SHA-512 steps
Pad the message so its length is 896 mod 1024 bits.
Append the length as a 128-bit number. The message is now a multiple of 1024 bits.
Initialise eight 64-bit buffers a to h with fixed values.
Process each 1024-bit block in 80 rounds. Each round uses a 64-bit word Wₜ made from the block and a constant Kₜ.
Output the final buffer as the 512-bit digest.
Feature
MD5
SHA-1
SHA-512
Digest size
128 bits
160 bits
512 bits
Block size
512 bits
512 bits
1024 bits
Rounds
64
80
80
Status
Broken
Broken
Secure
Message authentication.
Attacks it stops: masquerade, content change, sequence change and timing change.
Two levels: a low-level function makes an authenticator (MAC, hash or encryption). A higher-level protocol uses it to verify the message.
Real-life example
When you download Ubuntu or a big game file, the site shows a SHA-256 value. Your computer computes the hash of the file you got. If it matches, the file was not changed on the way.
Figure 2.1: SHA-512 overview
Same or opposite: MD5 and SHA-512
Point
MD5
SHA-512
Same or opposite
Digest size
128 bits
512 bits
Opposite
Block size
512 bits
1024 bits
Opposite
Collisions found
Yes, broken
No
Opposite
Uses padding and length field
Yes
Yes
Same
One-way function
Yes
Yes
Same
Exam tip. List the three security properties first. Draw the SHA-512 block diagram with padding, buffers and 80 rounds. Learn the comparison table: digest size, block size and rounds carry easy marks.
Q3. Cryptanalysis, brute force attack and classical ciphers
Asked 8 times in 2020, 2022, 2023, 2025 · Unit 1
From the papers
“Explain the concept of Cryptanalysis and Brute force attack.” (2020, 2022)
“Encrypt "SWARAJ IS MY BIRTH RIGHT" using the Playfair cipher with keyword MONARCHY. Use X for blank spaces.” (2025)
“Compare classical cryptosystems such as the Caesar cipher and the Playfair cipher. Perform frequency analysis on a simple ciphertext example.” (2025)
The short answer
Cryptanalysis is the study of breaking ciphers without knowing the key. A brute force attack simply tries every key, while classical ciphers such as Caesar and Playfair fall easily to frequency analysis.
Write these points
Types of cryptanalytic attack
Ciphertext only: the attacker has only ciphertext.
Known plaintext: the attacker has some plaintext and its ciphertext.
Chosen plaintext: the attacker can get any chosen plaintext encrypted.
Chosen ciphertext: the attacker can get chosen ciphertext decrypted.
Brute force: tries all keys. A 56-bit DES key has 2⁵⁶ keys. A 128-bit AES key has 2¹²⁸, which is out of reach.
Differential cryptanalysis studies how differences in input pairs change the output differences, to recover key bits.
Classical ciphers
Caesar: shift each letter by k. C = (P + k) mod 26. Only 25 keys, so brute force breaks it at once.
Playfair: 5 × 5 key square, encrypts letter pairs. Same row: take the letter to the right. Same column: take the letter below. Otherwise: take the corners of the rectangle.
Transposition: keeps the letters but changes their order, for example by writing rows and reading columns.
Frequency analysis: in English, E, T and A are most common. The most common ciphertext letter in a substitution cipher is probably E.
Jun 2025 paper: Playfair with keyword MONARCHY.
Square rows: M O N A R, C H Y B D, E F G I K.
Then L P Q S T, U V W X Z. I and J share a cell.
SWARAJ IS MY BIRTH RIGHT with X for spaces gives pairs SW AR AI XI SX MY XB IR TH XR IG HT.
Ciphertext: QX RM BS AS XA NC AI KA PD ZA KI DP.
Real-life example
In WWII, codebreakers at Bletchley Park broke the German Enigma cipher by cryptanalysis. They used known words like weather reports in the messages, a known plaintext attack.
Figure 3.1: Kinds of cryptanalytic attack
Same or opposite: substitution and transposition cipher
Point
Substitution
Transposition
Same or opposite
Changes
The letters
The order of letters
Opposite
Letter frequencies
Change
Stay the same
Opposite
Example
Caesar, Playfair
Rail fence, columnar
Opposite
Classical cipher
Yes
Yes
Same
Exam tip. Name the four attack types by what the attacker has. For a Playfair question, write the 5 × 5 square first. Then show the pairs and each rule used.
“Explain the technical details of firewall and describe any three types of firewall with neat diagram.” (2025)
“Define Firewalls. Explain types of Firewalls and their role in Network Security Architecture.” (2025)
“What is Firewall? Explain different types of firewalls in detail.” (2023)
The short answer
A firewall is hardware or software placed between a trusted network and an untrusted one (such as the Internet). It checks every packet or connection against a set of rules and allows or blocks it.
Write these points
Design goals
All traffic between the inside and the outside must pass through the firewall.
Only traffic allowed by the security policy may pass.
The firewall itself must be hard to break into.
Types
Packet filtering firewall: checks each packet's source and destination IP, port and protocol against rules. Fast but blind to the content.
Stateful inspection firewall: keeps a table of open connections. A reply packet passes only if it belongs to a known connection.
Application level gateway (proxy): works at the application layer for HTTP, FTP or mail. It can read and filter the content. Slower.
Circuit level gateway: sets up two TCP connections, one on each side. It relays bytes without reading them. Example: SOCKS.
Next-generation firewall: adds intrusion prevention and application awareness.
Personal firewall: runs on one PC, such as Windows Defender Firewall.
Placement
DMZ: public servers (web, mail) sit in a separate zone between two firewalls, so a break-in there does not reach the inside network.
Limits: a firewall cannot stop attacks that bypass it, inside threats or malware in allowed traffic.
Packet filter rules for a college web server.
Rule 1: allow TCP from any address to 10.0.0.5 port 443 (HTTPS).
Rule 2: allow TCP from 10.0.1.0/24 (the lab) to 10.0.0.5 port 22 (SSH).
Rule 3: deny everything else.
A packet from 49.36.10.2 to port 443 matches rule 1 and passes. A packet from 49.36.10.2 to port 22 matches no allow rule, so rule 3 drops it.
Real-life example
A college network allows students to open websites but blocks gaming ports and torrent traffic. The firewall at the campus gateway applies these rules to every packet.
Figure: a DMZ between an outer and an inner firewallFigure 4.1: Firewall with a DMZ
Same or opposite: packet filter and application gateway
Point
Packet filter
Application gateway
Same or opposite
OSI layer
Network and transport
Application
Opposite
Reads content
No
Yes
Opposite
Speed
Fast
Slower
Opposite
Applies a security policy
Yes
Yes
Same
Exam tip. Draw a network with the firewall between the Internet and the LAN, with a DMZ. Explain three types with one line on how each decides. End with what a firewall cannot do.
Q5. Digital signature and the Digital Signature Standard (DSS)
Asked 6 times in 2020, 2022, 2023, 2025 · Unit 3
From the papers
“Describe the Digital Signature Standard (DSS) in detail.” (2022, 2023)
“Illustrate the steps involved in signature generation and verification functions of DSS.” (2025)
“What is Digital Signature? Explain the Digital Signature Standard (DSS) with block diagram.” (2025)
The short answer
A digital signature is a value made with the signer's private key over the hash of a message, which anyone can check with the public key. The Digital Signature Standard (DSS) is the NIST standard that uses DSA.
Write these points
Why and what properties
It proves the author, the date and time of signing.
It proves the content was not changed.
It gives non-repudiation: the signer cannot deny signing later.
It must be easy to make and check. It must be impossible to forge.
DSA key setup
Global values: a prime p, a prime q dividing p − 1 and g = h^((p−1)/q) mod p.
Private key x (0 < x < q). Public key y = gˣ mod p.
Signing and verifying
Sign: pick a random k. r = (gᵏ mod p) mod q. s = k⁻¹(H(M) + x·r) mod q. The signature is (r, s).
Verify: w = s⁻¹ mod q. u1 = H(M)·w mod q. u2 = r·w mod q.
v = (g^u1 · y^u2 mod p) mod q. The signature is valid if v = r.
DSA with small numbers.
Public values: p = 23, q = 11, g = 4. Private key x = 3, so public key y = 4³ mod 23 = 18.
Sign a message with hash H = 6, using k = 2: r = (4² mod 23) mod 11 = 16 mod 11 = 5.
k⁻¹ mod 11 = 6. s = 6 × (6 + 3 × 5) mod 11 = 6 × 21 mod 11 = 5. Signature (r, s) = (5, 5).
Verify: w = 5⁻¹ mod 11 = 9. u1 = 6 × 9 mod 11 = 10. u2 = 5 × 9 mod 11 = 1.
v = (4¹⁰ × 18¹ mod 23) mod 11 = (6 × 18 mod 23) mod 11 = 16 mod 11 = 5 = r. The signature is valid.
Real-life example
Companies file GST and income tax returns online with a Digital Signature Certificate. The tax portal checks the signature with the public key, so nobody can file in the company's name.
Figure 5.1: Signing and checking with DSS
Same or opposite: RSA signature and DSS
Point
RSA signature
DSS (DSA)
Same or opposite
Based on
Factoring
Discrete logarithm
Opposite
Can also encrypt
Yes
No, signs only
Opposite
Random value per signature
Not needed
Needed (k)
Opposite
Signs the hash of the message
Yes
Yes
Same
Exam tip. Draw the sender and receiver block diagram. Write the sign and verify formulas exactly. Most marks go to the verify condition v = r.
“Explain the sequence of steps used in SSL handshake Protocol for establishing a new session. Draw a diagram of the Handshake Protocol.” (2022)
“Explain about SSL Handshake protocol.” (2020)
“Short note: SSL/TLS protocols.” (2025)
The short answer
SSL (Secure Sockets Layer) and its successor TLS (Transport Layer Security) protect data between two applications over TCP. The handshake protocol lets the client and server agree on a cipher, check the server's certificate and create shared keys before any data is sent.
Write these points
SSL protocol stack
Record protocol: splits, compresses, adds a MAC and encrypts application data.
Handshake, Change Cipher Spec and Alert protocols sit above it.
Phase 2, server authentication: server sends its certificate, an optional key exchange and server_hello_done.
Phase 3, client key exchange: client checks the certificate and sends the pre-master secret encrypted with the server's public key. Both sides make the master secret.
Phase 4, finish: both send change_cipher_spec and an encrypted finished message. Secure data now flows.
Alert protocol reports errors such as a bad certificate. A fatal alert closes the connection.
TLS 1.3 cuts the handshake to one round trip and removes old ciphers.
TLS handshake when you open your bank site.
1. Client hello: the browser sends its TLS versions, cipher suites and a random number.
2. Server hello: the bank picks TLS 1.2 with AES, sends its random number and its certificate.
3. The browser checks the certificate against a trusted CA. It sends a pre-master secret encrypted with the bank's public key.
4. Both sides make the same session keys from the two random numbers and the pre-master secret.
5. Both send Finished messages under the new keys. The login page now travels encrypted.
Real-life example
The padlock in your browser on any banking site means TLS is in use. The handshake happens in a fraction of a second before the login page even shows.
Figure: the SSL handshake, message by messageFigure 6.1: SSL handshake phases
Same or opposite: SSL and TLS
Point
SSL
TLS
Same or opposite
Made by
Netscape
IETF
Opposite
Status today
Old, insecure
In use (1.2, 1.3)
Opposite
MAC
Its own MAC
HMAC
Opposite
Uses a handshake and record protocol
Yes
Yes
Same
Exam tip. Draw the client and server columns with arrows for each message in the four phases. Name each message exactly. The diagram carries most of the marks.
Q7. Number theory: Fermat, Euler, modular inverse, primality
Asked 7 times in 2020, 2023, 2025 · Unit 1
From the papers
“Describe Fermat's little theorem with an example.” (2020, 2023)
“Find 5¹⁰⁰ mod 12, 8⁹ mod 119, and the primitive roots of 13 and 7.” (2025)
“Explain the concept of modular arithmetic with suitable examples. Derive Euler's theorem and state its significance in cryptography.” (2025)
The short answer
Public key cryptography rests on modular arithmetic, where Fermat's little theorem says a^(p−1) ≡ 1 (mod p) for prime p not dividing a. Euler's theorem extends it to a^φ(n) ≡ 1 (mod n) when gcd(a, n) = 1.
Write these points
Modular arithmetic: a ≡ b (mod n) when n divides a − b. Example: 17 ≡ 5 (mod 12).
Euler's totient φ(n): how many numbers from 1 to n are co-prime to n. φ(p) = p − 1 for a prime. φ(pq) = (p − 1)(q − 1).
Fermat example: 3¹⁰ mod 11 = 1. So 7²²² mod 11 = 7² mod 11 = 5, since 222 = 22 × 10 + 2.
Every time your phone opens a secure website, it raises numbers to huge powers mod n. Euler's theorem is the reason the server can undo that step with its private key.
Figure 7.1: Extended Euclid for 11⁻¹ mod 26
Same or opposite: Fermat's theorem and Euler's theorem
Point
Fermat
Euler
Same or opposite
Modulus
Prime p
Any n
Opposite
Exponent
p − 1
φ(n)
Opposite
Condition
p does not divide a
gcd(a, n) = 1
Opposite
Result is 1
Yes
Yes
Same
Exam tip. State the theorem with its condition. Then solve one numerical step by step. In inverse questions, show every Euclid step and verify at the end.
Q8. IPSec: architecture, AH, ESP, transport and tunnel modes
Asked 6 times in 2020, 2023, 2025 · Unit 4
From the papers
“Discuss transport mode and tunnel mode authentication in IP. Describe how ESP is applied to both these modes.” (2025)
“Draw the IP security authentication header and describe the function of each field.” (2025)
“Explain IP Security (IPSec) protocols AH and ESP. How are these used for secure data transmission?” (2025)
The short answer
IPSec is a set of protocols that secures every packet at the IP layer with authentication, integrity and confidentiality. Its two main protocols are AH (Authentication Header) and ESP (Encapsulating Security Payload).
Write these points
Services
Access control, connectionless integrity, data origin authentication.
Rejection of replayed packets (anti-replay with sequence numbers).
Confidentiality (encryption) and limited traffic flow confidentiality (ESP only).
Parts of the architecture
Security Association (SA): a one-way agreement on keys and algorithms, named by an SPI, destination IP and protocol.
SAD and SPD: the SA database and the security policy database.
IKE: the protocol that sets up SAs and keys.
AH header fields
Next header, payload length, reserved.
SPI: names the SA. Sequence number: stops replays.
Authentication data: the integrity check value (MAC) over the packet.
Modes
Transport mode: protects the payload only. The original IP header stays. Used host to host.
Tunnel mode: protects the whole original packet and adds a new outer IP header. Used between gateways, as in VPNs.
ESP encrypts and can authenticate. In transport mode it covers the payload. In tunnel mode it covers the whole inner packet.
ESP tunnel mode between two offices.
A PC 10.1.1.5 in Bhopal sends a packet to a server 10.2.2.9 in Indore.
The Bhopal gateway encrypts the whole original packet, inner IP header included, inside an ESP payload.
It adds a new outer IP header from gateway 203.0.113.1 to gateway 198.51.100.7.
Anyone on the Internet sees only the two gateway addresses. The Indore gateway removes ESP and delivers the original packet.
Real-life example
Office staff working from home connect through a company VPN. The VPN gateway uses IPSec in tunnel mode, so their traffic is encrypted across the Internet.
Figure: what ESP protects in transport mode and in tunnel modeFigure 8.1: Tunnel mode with ESP
Same or opposite: AH and ESP
Point
AH
ESP
Same or opposite
Encryption
No
Yes
Opposite
Integrity and authentication
Yes
Yes
Same
Covers outer IP header
Yes, mostly
No
Opposite
Works in transport and tunnel mode
Yes
Yes
Same
Exam tip. Draw the packet layout for transport and tunnel mode with AH or ESP in place. Draw the AH header with its fields. Name SA and SPI.
Q9. DES: structure, key generation, S-boxes and Triple DES
Asked 6 times in 2022, 2023, 2025 · Unit 1
From the papers
“Explain the Key Generation, Encryption and Decryption of DES algorithm in detail.” (2025)
“Illustrate DES algorithm with neat diagram. Explain S-box importance in DES.” (2023)
“Explain simplified version of DES.” (2023)
The short answer
DES (Data Encryption Standard) is a symmetric block cipher that encrypts 64-bit blocks with a 56-bit key in 16 Feistel rounds. Triple DES applies DES three times to get a longer key.
Write these points
Encryption
Initial permutation (IP) of the 64-bit block. Split into left L₀ and right R₀, 32 bits each.
16 rounds: Lᵢ = Rᵢ₋₁ and Rᵢ = Lᵢ₋₁ ⊕ F(Rᵢ₋₁, Kᵢ).
F function: expand R from 32 to 48 bits and XOR it with the 48-bit round key. Then pass it through 8 S-boxes (6 bits in, 4 bits out) and a P-box permutation.
Swap the halves after round 16, then apply the inverse IP.
Decryption uses the same steps with the round keys in reverse order.
Key generation
Drop every 8th bit of the 64-bit key (PC-1) to get 56 bits. Split into C₀ and D₀ of 28 bits.
Each round, rotate both halves left by 1 or 2 bits.
PC-2 picks 48 of the 56 bits as the round key Kᵢ.
S-boxes and Triple DES
S-boxes are the only non-linear step. They give confusion. Without them DES would be easy to break.
Triple DES: C = E(K₃, D(K₂, E(K₁, P))). With two keys, K₃ = K₁. It is slow but much stronger.
Simplified DES works on 8-bit blocks with a 10-bit key and 2 rounds, for teaching.
One S-box lookup and the key schedule.
S-box S1 gets the 6 bits 011011. The first and last bits, 0 and 1, give row 01 = 1.
The middle four bits 1101 give column 13. S1 row 1, column 13 holds 5, so the output is 0101.
Key schedule: PC-1 drops 8 parity bits from 64, leaving 56. They split into two halves of 28.
Each round shifts both halves left by 1 (rounds 1, 2, 9, 16) or by 2 (other rounds).
That is 4 × 1 + 12 × 2 = 28 shifts in all. PC-2 then picks 48 bits as the round key.
Real-life example
ATMs and bank card systems used DES for years to protect PINs. When 56-bit keys became easy to break, banks moved to Triple DES. Today they use AES.
Figure: one round of DES (a Feistel round)Figure 9.1: DES encryption
Same or opposite: DES and AES
Point
DES
AES
Same or opposite
Block size
64 bits
128 bits
Opposite
Key size
56 bits
128, 192, 256 bits
Opposite
Structure
Feistel
Substitution-permutation
Opposite
Symmetric block cipher
Yes
Yes
Same
Exam tip. Draw the overall DES diagram and one round with the F function. Write the round equations. Show key generation as a separate small diagram.
“Discuss Email Security services and explain the working of Pretty Good Privacy (PGP) and S/MIME.” (2025)
“Write about the usage of Session keys, Public and Private keys in PGP.” (2023)
“Analyze the Cryptographic algorithms used in S/MIME. Explain S/MIME certificate processing.” (2023)
The short answer
PGP and S/MIME secure e-mail with signatures, encryption, compression and e-mail compatibility. PGP trusts keys through a web of trust while S/MIME uses X.509 certificates from a certificate authority.
Write these points
PGP services
Authentication: hash the message with SHA, sign the hash with the sender's private key (RSA or DSS).
Confidentiality: encrypt the message with a one-time session key (AES, CAST or 3DES). Encrypt the session key with the receiver's public key.
Compression: ZIP the message after signing but before encryption. Signing first lets the signature be checked without storing a compressed copy. Compressing before encrypting makes the ciphertext shorter and harder to analyse.
E-mail compatibility: radix-64 turns binary into printable text.
Segmentation and reassembly: long messages are split to fit e-mail size limits and joined at the receiver.
Keys in PGP
Session key: random, used for one message only.
Public and private keys: kept in the public key ring and private key ring. The private key ring is itself encrypted with a passphrase.
S/MIME
Functions: enveloped data, signed data, clear-signed data, signed and enveloped data.
Algorithms: SHA-256 for hashing, RSA or DSS to sign, AES or 3DES to encrypt.
Certificate processing: X.509 certificates signed by a CA. The receiver checks the chain up to a trusted CA.
Asha sends a signed and secret mail with PGP.
1. PGP hashes the mail with SHA and signs the hash with Asha's private key.
2. It compresses the mail and the signature with ZIP.
3. It makes a random one-time session key and encrypts the compressed data with AES.
4. It encrypts the session key with Ravi's public key and adds it to the message.
5. It converts everything to radix-64 text so that any mail system can carry it. Ravi reverses the steps.
Real-life example
Government officers and lawyers often send signed and encrypted mails with S/MIME in Outlook. Journalists and activists often use PGP to talk to their sources safely.
Figure 10.1: PGP at the sender
Same or opposite: PGP and S/MIME
Point
PGP
S/MIME
Same or opposite
Trust model
Web of trust
Certificate authority (X.509)
Opposite
Main users
Individuals
Companies, government
Opposite
Signs and encrypts mail
Yes
Yes
Same
Uses a one-time session key
Yes
Yes
Same
Exam tip. Draw the PGP sender diagram: hash, sign, ZIP, encrypt with session key, encrypt session key, radix-64. Explain why compression comes after signing.
“Perform encryption and decryption using RSA algorithm for p = 7, q = 11, e = 17, m = 8.” (2025)
“Using the RSA algorithm, encrypt the plaintext with given p, q and e. Compute n, φ(n), d and the ciphertext C.” (2025)
“Explain RSA algorithm. Give an example of encryption and decryption using RSA.” (2023)
The short answer
RSA is a public key algorithm whose security rests on how hard it is to factor the product of two large primes. Each user has a public key (e, n) to encrypt and a private key (d, n) to decrypt.
Write these points
Key generation
Choose two large primes p and q. Compute n = p × q.
Compute φ(n) = (p − 1)(q − 1).
Choose e with 1 < e < φ(n) and gcd(e, φ(n)) = 1.
Find d = e⁻¹ mod φ(n).
Public key {e, n}. Private key {d, n}.
Encryption and decryption
Encrypt: C = Mᵉ mod n. Decrypt: M = Cᵈ mod n. It works because of Euler's theorem.
Strength: with keys of 2048 bits, factoring n is out of reach. Attacks are brute force on d, factoring n, timing attacks and chosen ciphertext attacks.
Jun 2025 paper: p = 7, q = 11, e = 17, M = 8.
n = 77. φ(n) = 6 × 10 = 60.
d: 17 × d ≡ 1 (mod 60). 17 × 53 = 901 = 15 × 60 + 1, so d = 53.
C = 8¹⁷ mod 77, by squaring: 8² = 64, 8⁴ = 64² mod 77 = 15, 8⁸ = 15² mod 77 = 71.
8¹⁶ = 71² mod 77 = 36. 8¹⁷ = 36 × 8 mod 77 = 57.
Decrypt: 57⁵³ mod 77 = 8. The original message comes back.
Real-life example
When you open a website over HTTPS, the server's certificate often carries an RSA public key. Your browser uses it to check the server, so you know you are talking to the real bank.
Figure 11.1: RSA in one look
Same or opposite: RSA and Diffie-Hellman
Point
RSA
Diffie-Hellman
Same or opposite
Based on
Factoring
Discrete logarithm
Opposite
Encrypts messages
Yes
No
Opposite
Gives digital signatures
Yes
No
Opposite
Public key method
Yes
Yes
Same
Exam tip. Write the five key steps, then the two formulas. In numericals, show each squaring step for C. Always decrypt back to show the answer is right.
Q12. Steganography and how it differs from cryptography
Asked 5 times in 2020, 2023, 2025 · Unit 5
From the papers
“Describe the differences between steganography and cryptography with example in detail.” (2025)
“What is Steganography? Explain any two tools used for hiding information in digital media.” (2025)
“What is Steganography? Explain different types of Steganography.” (2023)
The short answer
Steganography hides a secret message inside an ordinary file, such as an image, audio or video, so nobody knows the message exists. Cryptography makes the message unreadable but does not hide that it exists.
Write these points
Types
Image: least significant bit (LSB) method changes the last bit of pixel values. The picture looks the same.
Audio: hides bits in sound samples or echoes.
Video: hides data across frames.
Text: uses spaces, line shifts or chosen words.
Network: hides bits in unused header fields of packets.
Steganalysis tools detect hidden data: StegExpose, stegdetect. They look for odd statistics in pixel bits.
LSB example.
Pixel value 10110100. To hide bit 1, change the last bit: 10110101. The value changes from 180 to 181, which the eye cannot see.
Real-life example
A spy can post a normal holiday photo on social media with a message hidden in its pixels. Anyone sees a beach. Only the receiver with the tool and password reads the message.
Figure 12.1: Hiding a message in an image
Same or opposite: steganography and cryptography
Point
Steganography
Cryptography
Same or opposite
Hides
That a message exists
The meaning of the message
Opposite
Output looks like
A normal file
Random text
Opposite
Broken by
Steganalysis
Cryptanalysis
Opposite
Protects secret data
Yes
Yes
Same
Can be used together
Yes
Yes
Same
Exam tip. Define both terms in one line each. Then give the comparison table. Explain LSB with a small binary example and name two tools.
“Describe the role of Ticket Granting Server in inter-realm operations of Kerberos.” (2025)
“Explain Kerberos Authentication system with suitable diagram.” (2025)
“What are the main differences between Kerberos V4 and V5?” (2023)
The short answer
Kerberos is an authentication service for networks. It uses symmetric keys and a trusted third party, so a user logs in once and then gets access to many servers without sending the password again.
Write these points
Parts
AS (Authentication Server): checks the user and gives a ticket-granting ticket (TGT).
TGS (Ticket Granting Server): takes the TGT and gives a service ticket for one server.
V: the server the user wants, such as a file server.
Steps (Kerberos v4)
Client → AS: user ID and TGS ID.
AS → Client: TGT and a session key, encrypted with a key made from the user's password.
Client → TGS: TGT, an authenticator and the server ID.
TGS → Client: service ticket and a client-server session key.
Client → V: service ticket and authenticator. V can reply to prove itself (mutual authentication).
Realms and versions
A realm is one Kerberos domain. For inter-realm access, the local TGS gives a ticket for the remote TGS. The two TGSs share a key.
v5 over v4: any encryption algorithm (not only DES), any network address type, longer ticket lifetimes, forwarding of tickets, simpler inter-realm trust.
Riya opens a file on the college file server.
1. Riya logs in. Her PC asks the AS for a ticket. The AS replies with a TGT, sealed with a key made from her password, so only her PC can open it.
2. Her PC sends the TGT and the name "fileserver" to the TGS. The TGS replies with a service ticket for the file server.
3. Her PC sends the service ticket and an authenticator (her name and the time) to the file server. The server opens the ticket with its own key and lets her in.
Her password was typed once and never sent over the network. The TGT lets her reach other services without typing it again.
Real-life example
In an office, you log in to a Windows PC once in the morning. After that you open shared folders, printers and the mail server without typing your password again. Behind the scenes, Active Directory gave your PC a Kerberos ticket at login. Each server trusts that ticket, so your password never travels over the network.
Figure: the six Kerberos messagesFigure 13.1: Kerberos message flow
Same or opposite: Kerberos v4 and v5
Point
v4
v5
Same or opposite
Encryption
DES only
Any algorithm
Opposite
Ticket lifetime
Up to about 21 hours
Any start and end time
Opposite
Ticket forwarding
No
Yes
Opposite
Uses AS and TGS
Yes
Yes
Same
Exam tip. Draw the client, AS, TGS and server with numbered arrows for the six messages. Write what each message carries. Add one line each on realms and v4 versus v5.
“How can we encrypt and decrypt a message in ECC?” (2023)
“Define elliptic curves and explain their application in cryptography.” (2020)
“Short note: ECC.” (2025)
The short answer
Elliptic curve cryptography (ECC) is public key cryptography built on points of an elliptic curve y² = x³ + ax + b over a finite field. It gives the same security as RSA with much smaller keys.
Write these points
Curve over a prime field: y² ≡ x³ + ax + b (mod p) with 4a³ + 27b² ≢ 0 (mod p).
Point addition: a line through two points P and Q meets the curve at a third point. Its mirror is P + Q.
Scalar multiplication: kP = P + P + ... + P (k times). Given P and kP, finding k is the elliptic curve discrete log problem, which is very hard.
Keys: pick a base point G. Private key n. Public key P = nG.
Encrypt message point Pm: choose random k. Send Cm = {kG, Pm + kPB}.
Decrypt: Pm = (Pm + kPB) − nB(kG). This works because PB = nBG.
ECDH and ECDSA are the key exchange and signature forms of ECC.
Key size: a 256-bit ECC key is about as strong as a 3072-bit RSA key.
Point doubling on a small curve.
Curve y² = x³ + 2x + 2 over mod 17. Point P = (5, 1) is on it: 125 + 10 + 2 = 137 ≡ 1 (mod 17).
Slope λ = (3x² + a) / 2y = (75 + 2) / 2 = 77 / 2. 77 mod 17 = 9 and 2⁻¹ mod 17 = 9, so λ = 81 mod 17 = 13.
WhatsApp, Signal and modern HTTPS use elliptic curves (Curve25519) for key exchange. Phones with little power can do it quickly because the keys are small.
Figure 14.1: ECC encryption
Same or opposite: ECC and RSA
Point
ECC
RSA
Same or opposite
Hard problem
Elliptic curve discrete log
Factoring
Opposite
Key size for equal security
256 bits
3072 bits
Opposite
Speed on phones
Fast
Slower
Opposite
Public key method
Yes
Yes
Same
Exam tip. Write the curve equation and the hard problem. Then give key generation, encryption and decryption as three short lines. Mention the key size advantage.
“Find the secret key shared between user A and user B using Diffie-Hellman for q = 353, α = 3, XA = 45 and XB = 50.” (2025)
“Discuss Diffie-Hellman Key Exchange algorithm. What are Computational and Decisional Diffie-Hellman Problems?” (2025)
“How to establish a shared secret between two parties using Diffie-Hellman key exchange algorithm? Explain.” (2023)
The short answer
Diffie-Hellman key exchange lets two parties create a shared secret key over an open channel without ever sending the key. Its security rests on the discrete logarithm problem.
Write these points
Steps
Both agree on a prime q and a primitive root α of q.
A picks private Xₐ and sends Yₐ = α^Xₐ mod q.
B picks private X_B and sends Y_B = α^X_B mod q.
A computes K = Y_B^Xₐ mod q. B computes K = Yₐ^X_B mod q. Both get α^(XₐX_B) mod q.
Man-in-the-middle attack: an attacker can swap Yₐ and Y_B with its own values. Signing the values or using certificates prevents this.
Computational DH problem: given α, α^a and α^b, find α^(ab). Decisional DH problem: tell α^(ab) apart from a random value. Both are believed hard.
When your browser makes a TLS connection, it usually runs an elliptic-curve version of Diffie-Hellman. Even if someone records the whole conversation, they cannot work out the session key.
Figure: Diffie-Hellman with q = 11 and alpha = 2Figure 15.1: Diffie-Hellman exchange
Same or opposite: public and private values in Diffie-Hellman
Point
Public
Private
Same or opposite
Values
q, α, Yₐ, Y_B
Xₐ, X_B, K
Opposite
Sent over the network
Yes
Never
Opposite
Needed to compute K
Yes
Yes
Same
Known to an eavesdropper
Yes
No
Opposite
Exam tip. Draw A and B on two sides with the values sent between them. Solve the numerical with every step. Mention the man-in-the-middle weakness for full marks.
Cryptography and Information Security (CS-703 A) is an elective in Semester 7 of RGPV B.Tech CSE. It covers how data is protected by encryption and how networks, email and the web are secured. The first three units are about algorithms and the last two about systems and tools. Do the number theory numericals carefully.
Cryptography and Information Security unit-wise brief
Unit 1: Mathematical background and classical cryptography
This unit covers abstract algebra and number theory (modular inverse, extended Euclid, Fermat's and Euler's theorems), then classical ciphers, frequency analysis, the Playfair cipher, block ciphers, DES, triple DES, modes of operation and stream ciphers. Practise the extended Euclid algorithm.
Unit 2: AES and public key cryptography
Here you study the Advanced Encryption Standard, public key cryptosystems, the discrete logarithm problem, Diffie-Hellman key exchange, RSA and its signatures, Schnorr identification, primality testing, elliptic curves and the Chinese remainder theorem. Do one RSA example from key generation to decryption.
Unit 3: Message authentication and hash functions
This unit covers message authentication, digital signatures, key management and exchange, hash functions (universal hashing, MD and SHA), the Digital Signature Standard, cryptanalysis methods and Kerberos. Learn the properties a good hash function needs.
Unit 4: Information security
The unit covers threats in networks and security controls: wireless security, honeypots, firewalls and intrusion detection, email security (PGP and S/MIME), IP security (IPSec, ESP and IKE), web security with SSL/TLS, and the SET protocol. Know where each protocol works in the network stack.
Unit 5: Cryptography and information security tools
The last unit lists the tools used to study network security: spoofing, footprinting and vulnerability scanning tools, NetBIOS enumeration, steganography and steganalysis tools, trojan detection tools, LAN scanners and sniffers, and tools used to understand denial of service attacks. Treat them as ways to learn how attacks are found and stopped, and use them only on your own lab systems.
Units follow the RGPV scheme and syllabus, B.Tech Computer Science and Engineering, Semester 7 (AICTE flexible curriculum, w.e.f. July 2020) (copy hosted by VIT Bhopal (RGPV-affiliated)). For the full topic list of each unit, open the Cryptography and Information Security notes.
Cryptography and Information Security (CS-703-A) FAQs
What are the most important topics in Cryptography and Information Security?
By how often they were asked in the papers on this site: Security tools: spoofing, footprinting, scanning and DoS tools (10 times); Hash functions, MD5, SHA and message authentication (9 times); Cryptanalysis, brute force attack and classical ciphers (8 times); Firewalls: design and types (7 times); Number theory: Fermat, Euler, modular inverse, primality (7 times).
How were these Cryptography and Information Security important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2020-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Cryptography and Information Security important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Cryptography and Information Security is free to download from this page.
The 15 most repeated topics of Cryptography and Information Security (CS-703-A) for RGPV B.Tech CSE semester 7, counted from the previous year papers on this site.