CS-703-A Cryptography and Information Security

Cryptography and Information Security (CS-703-A) Important Questions

RGPV · B.Tech · CSE · Semester 7 · Current scheme · 5 papers (2020 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Cryptography and Information Security important questions

Download Paperwala Imp Question & Answer (PDF)

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

  1. Footprinting tools collect public facts about a target before an attack: domain owner, IP range, mail servers. Examples: whois, nslookup, Maltego, theHarvester.
  2. Spoofing tools fake an identity such as an IP address, MAC address or ARP entry. Examples: arpspoof, Ettercap, macchanger.
  3. Scanning tools find live hosts, open ports and services. Examples: Nmap, Angry IP Scanner. LAN scanner tools list every device on a local network.
  4. Vulnerability scanning tools match running services against known weaknesses. Examples: Nessus, OpenVAS, Nikto for web servers.
  5. 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.
  6. Trojan detection tools look for hidden programs and unknown open ports. Examples: netstat, TCPView, Process Explorer, antivirus scanners.
  7. Steganalysis tools look for data hidden inside images or audio. Examples: StegExpose, stegdetect.
GroupPurposeExample
FootprintingCollect public factswhois, Maltego
ScanningFind hosts and portsNmap
VulnerabilityFind known weaknessesNessus
DoSTest load handlinghping3
Trojan detectionFind hidden programsTCPView

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
Figure 1.1: Phases where these tools are used

Same or opposite: footprinting and scanning

PointFootprintingScanningSame or opposite
Contact with the targetLittle or none (public data)Direct probesOpposite
FindsDomains, IP ranges, peopleLive hosts, ports, servicesOpposite
Example toolwhois, MaltegoNmapOpposite
Step of an attack or testYes, firstYes, secondSame

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.

Back to the topic list

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

  1. Works on input of any size. Output has a fixed size.
  2. Easy to compute H(M).
  3. Preimage resistant (one-way): given h, it is hard to find M with H(M) = h.
  4. Second preimage resistant: given M, it is hard to find another M′ with the same hash.
  5. 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

  1. Pad the message so its length is 896 mod 1024 bits.
  2. Append the length as a 128-bit number. The message is now a multiple of 1024 bits.
  3. Initialise eight 64-bit buffers a to h with fixed values.
  4. Process each 1024-bit block in 80 rounds. Each round uses a 64-bit word Wₜ made from the block and a constant Kₜ.
  5. Output the final buffer as the 512-bit digest.
FeatureMD5SHA-1SHA-512
Digest size128 bits160 bits512 bits
Block size512 bits512 bits1024 bits
Rounds648080
StatusBrokenBrokenSecure

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
Figure 2.1: SHA-512 overview

Same or opposite: MD5 and SHA-512

PointMD5SHA-512Same or opposite
Digest size128 bits512 bitsOpposite
Block size512 bits1024 bitsOpposite
Collisions foundYes, brokenNoOpposite
Uses padding and length fieldYesYesSame
One-way functionYesYesSame

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.

Back to the topic list

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

  1. Ciphertext only: the attacker has only ciphertext.
  2. Known plaintext: the attacker has some plaintext and its ciphertext.
  3. Chosen plaintext: the attacker can get any chosen plaintext encrypted.
  4. Chosen ciphertext: the attacker can get chosen ciphertext decrypted.
  5. 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.
  6. 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
Figure 3.1: Kinds of cryptanalytic attack

Same or opposite: substitution and transposition cipher

PointSubstitutionTranspositionSame or opposite
ChangesThe lettersThe order of lettersOpposite
Letter frequenciesChangeStay the sameOpposite
ExampleCaesar, PlayfairRail fence, columnarOpposite
Classical cipherYesYesSame

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.

Back to the topic list

Q4. Firewalls: design and types

Asked 7 times in 2020, 2022, 2023, 2025 · Unit 4

From the papers

  • “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

  1. All traffic between the inside and the outside must pass through the firewall.
  2. Only traffic allowed by the security policy may pass.
  3. The firewall itself must be hard to break into.

Types

  1. Packet filtering firewall: checks each packet's source and destination IP, port and protocol against rules. Fast but blind to the content.
  2. Stateful inspection firewall: keeps a table of open connections. A reply packet passes only if it belongs to a known connection.
  3. Application level gateway (proxy): works at the application layer for HTTP, FTP or mail. It can read and filter the content. Slower.
  4. Circuit level gateway: sets up two TCP connections, one on each side. It relays bytes without reading them. Example: SOCKS.
  5. Next-generation firewall: adds intrusion prevention and application awareness.
  6. 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 firewall
Figure: a DMZ between an outer and an inner firewall
Figure 4.1: Firewall with a DMZ
Figure 4.1: Firewall with a DMZ

Same or opposite: packet filter and application gateway

PointPacket filterApplication gatewaySame or opposite
OSI layerNetwork and transportApplicationOpposite
Reads contentNoYesOpposite
SpeedFastSlowerOpposite
Applies a security policyYesYesSame

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.

Back to the topic list

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

  1. It proves the author, the date and time of signing.
  2. It proves the content was not changed.
  3. It gives non-repudiation: the signer cannot deny signing later.
  4. 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

  1. Sign: pick a random k. r = (gᵏ mod p) mod q. s = k⁻¹(H(M) + x·r) mod q. The signature is (r, s).
  2. Verify: w = s⁻¹ mod q. u1 = H(M)·w mod q. u2 = r·w mod q.
  3. 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
Figure 5.1: Signing and checking with DSS

Same or opposite: RSA signature and DSS

PointRSA signatureDSS (DSA)Same or opposite
Based onFactoringDiscrete logarithmOpposite
Can also encryptYesNo, signs onlyOpposite
Random value per signatureNot neededNeeded (k)Opposite
Signs the hash of the messageYesYesSame

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.

Back to the topic list

Q6. SSL handshake protocol and TLS

Asked 4 times in 2020, 2022, 2023, 2025 · Unit 4

From the papers

  • “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.

Handshake in four phases

  1. Phase 1, hello: client_hello (version, random, session ID, cipher suites). server_hello picks one.
  2. Phase 2, server authentication: server sends its certificate, an optional key exchange and server_hello_done.
  3. 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.
  4. Phase 4, finish: both send change_cipher_spec and an encrypted finished message. Secure data now flows.
  5. Alert protocol reports errors such as a bad certificate. A fatal alert closes the connection.
  6. 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 message
Figure: the SSL handshake, message by message
Figure 6.1: SSL handshake phases
Figure 6.1: SSL handshake phases

Same or opposite: SSL and TLS

PointSSLTLSSame or opposite
Made byNetscapeIETFOpposite
Status todayOld, insecureIn use (1.2, 1.3)Opposite
MACIts own MACHMACOpposite
Uses a handshake and record protocolYesYesSame

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.

Back to the topic list

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

  1. Modular arithmetic: a ≡ b (mod n) when n divides a − b. Example: 17 ≡ 5 (mod 12).
  2. 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).
  3. Fermat example: 3¹⁰ mod 11 = 1. So 7²²² mod 11 = 7² mod 11 = 5, since 222 = 22 × 10 + 2.
  4. Euler example: φ(12) = 4, so 5¹⁰⁰ = (5⁴)²⁵ ≡ 1 (mod 12).
  5. Modular inverse: a⁻¹ mod n exists when gcd(a, n) = 1. The extended Euclidean algorithm finds it.
  6. Primitive root g of p: its powers give every value from 1 to p − 1. Primitive roots of 13 are 2, 6, 7, 11. Of 7: 3, 5.
  7. Miller-Rabin test: a fast test that says a number is composite or probably prime.
  8. Use: RSA decryption works because of Euler's theorem. Fermat gives fast inverses: a⁻¹ = a^(p−2) mod p.

Dec 2025 paper: inverse of 11 mod 26.

26 = 2 × 11 + 4. 11 = 2 × 4 + 3. 4 = 1 × 3 + 1.

Back substitute: 1 = 4 − 3 = 4 − (11 − 2 × 4) = 3 × 4 − 11.

Then 1 = 3 × (26 − 2 × 11) − 11 = 3 × 26 − 7 × 11.

So 11⁻¹ ≡ −7 ≡ 19 (mod 26). Check: 11 × 19 = 209 = 8 × 26 + 1.

Real-life example

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
Figure 7.1: Extended Euclid for 11⁻¹ mod 26

Same or opposite: Fermat's theorem and Euler's theorem

PointFermatEulerSame or opposite
ModulusPrime pAny nOpposite
Exponentp − 1φ(n)Opposite
Conditionp does not divide agcd(a, n) = 1Opposite
Result is 1YesYesSame

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.

Back to the topic list

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

  1. Access control, connectionless integrity, data origin authentication.
  2. Rejection of replayed packets (anti-replay with sequence numbers).
  3. 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

  1. Next header, payload length, reserved.
  2. SPI: names the SA. Sequence number: stops replays.
  3. 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 mode
Figure: what ESP protects in transport mode and in tunnel mode
Figure 8.1: Tunnel mode with ESP
Figure 8.1: Tunnel mode with ESP

Same or opposite: AH and ESP

PointAHESPSame or opposite
EncryptionNoYesOpposite
Integrity and authenticationYesYesSame
Covers outer IP headerYes, mostlyNoOpposite
Works in transport and tunnel modeYesYesSame

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.

Back to the topic list

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

  1. Initial permutation (IP) of the 64-bit block. Split into left L₀ and right R₀, 32 bits each.
  2. 16 rounds: Lᵢ = Rᵢ₋₁ and Rᵢ = Lᵢ₋₁ ⊕ F(Rᵢ₋₁, Kᵢ).
  3. 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.
  4. Swap the halves after round 16, then apply the inverse IP.
  5. Decryption uses the same steps with the round keys in reverse order.

Key generation

  1. Drop every 8th bit of the 64-bit key (PC-1) to get 56 bits. Split into C₀ and D₀ of 28 bits.
  2. Each round, rotate both halves left by 1 or 2 bits.
  3. 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: one round of DES (a Feistel round)
Figure 9.1: DES encryption
Figure 9.1: DES encryption

Same or opposite: DES and AES

PointDESAESSame or opposite
Block size64 bits128 bitsOpposite
Key size56 bits128, 192, 256 bitsOpposite
StructureFeistelSubstitution-permutationOpposite
Symmetric block cipherYesYesSame

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.

Back to the topic list

Q10. E-mail security: PGP and S/MIME

Asked 6 times in 2022, 2023, 2025 · Unit 4

From the papers

  • “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

  1. Authentication: hash the message with SHA, sign the hash with the sender's private key (RSA or DSS).
  2. Confidentiality: encrypt the message with a one-time session key (AES, CAST or 3DES). Encrypt the session key with the receiver's public key.
  3. 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.
  4. E-mail compatibility: radix-64 turns binary into printable text.
  5. 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
Figure 10.1: PGP at the sender

Same or opposite: PGP and S/MIME

PointPGPS/MIMESame or opposite
Trust modelWeb of trustCertificate authority (X.509)Opposite
Main usersIndividualsCompanies, governmentOpposite
Signs and encrypts mailYesYesSame
Uses a one-time session keyYesYesSame

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.

Back to the topic list

Q11. RSA algorithm with a worked example

Asked 5 times in 2020, 2023, 2025 · Unit 2

From the papers

  • “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

  1. Choose two large primes p and q. Compute n = p × q.
  2. Compute φ(n) = (p − 1)(q − 1).
  3. Choose e with 1 < e < φ(n) and gcd(e, φ(n)) = 1.
  4. Find d = e⁻¹ mod φ(n).
  5. 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
Figure 11.1: RSA in one look

Same or opposite: RSA and Diffie-Hellman

PointRSADiffie-HellmanSame or opposite
Based onFactoringDiscrete logarithmOpposite
Encrypts messagesYesNoOpposite
Gives digital signaturesYesNoOpposite
Public key methodYesYesSame

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.

Back to the topic list

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

  1. Image: least significant bit (LSB) method changes the last bit of pixel values. The picture looks the same.
  2. Audio: hides bits in sound samples or echoes.
  3. Video: hides data across frames.
  4. Text: uses spaces, line shifts or chosen words.
  5. Network: hides bits in unused header fields of packets.

Tools

  • Hiding tools: Steghide, OpenStego, S-Tools, OutGuess.
  • 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
Figure 12.1: Hiding a message in an image

Same or opposite: steganography and cryptography

PointSteganographyCryptographySame or opposite
HidesThat a message existsThe meaning of the messageOpposite
Output looks likeA normal fileRandom textOpposite
Broken bySteganalysisCryptanalysisOpposite
Protects secret dataYesYesSame
Can be used togetherYesYesSame

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.

Back to the topic list

Q13. Kerberos authentication

Asked 4 times in 2020, 2023, 2025 · Unit 3

From the papers

  • “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)

  1. Client → AS: user ID and TGS ID.
  2. AS → Client: TGT and a session key, encrypted with a key made from the user's password.
  3. Client → TGS: TGT, an authenticator and the server ID.
  4. TGS → Client: service ticket and a client-server session key.
  5. 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 messages
Figure: the six Kerberos messages
Figure 13.1: Kerberos message flow
Figure 13.1: Kerberos message flow

Same or opposite: Kerberos v4 and v5

Pointv4v5Same or opposite
EncryptionDES onlyAny algorithmOpposite
Ticket lifetimeUp to about 21 hoursAny start and end timeOpposite
Ticket forwardingNoYesOpposite
Uses AS and TGSYesYesSame

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.

Back to the topic list

Q14. Elliptic curve cryptography (ECC)

Asked 4 times in 2020, 2023, 2025 · Unit 2

From the papers

  • “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

  1. Curve over a prime field: y² ≡ x³ + ax + b (mod p) with 4a³ + 27b² ≢ 0 (mod p).
  2. Point addition: a line through two points P and Q meets the curve at a third point. Its mirror is P + Q.
  3. 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.
  4. Keys: pick a base point G. Private key n. Public key P = nG.
  5. Encrypt message point Pm: choose random k. Send Cm = {kG, Pm + kPB}.
  6. Decrypt: Pm = (Pm + kPB) − nB(kG). This works because PB = nBG.
  7. ECDH and ECDSA are the key exchange and signature forms of ECC.
  8. 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.

x₃ = λ² − 2x = 169 − 10 = 159 ≡ 6 (mod 17).

y₃ = λ(x₁ − x₃) − y₁ = 13 × (5 − 6) − 1 = −14 ≡ 3 (mod 17). So 2P = (6, 3).

Real-life example

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
Figure 14.1: ECC encryption

Same or opposite: ECC and RSA

PointECCRSASame or opposite
Hard problemElliptic curve discrete logFactoringOpposite
Key size for equal security256 bits3072 bitsOpposite
Speed on phonesFastSlowerOpposite
Public key methodYesYesSame

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.

Back to the topic list

Q15. Diffie-Hellman key exchange

Asked 4 times in 2022, 2023, 2025 · Unit 2

From the papers

  • “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

  1. Both agree on a prime q and a primitive root α of q.
  2. A picks private Xₐ and sends Yₐ = α^Xₐ mod q.
  3. B picks private X_B and sends Y_B = α^X_B mod q.
  4. A computes K = Y_B^Xₐ mod q. B computes K = Yₐ^X_B mod q. Both get α^(XₐX_B) mod q.
  5. 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.
  6. Computational DH problem: given α, α^a and α^b, find α^(ab). Decisional DH problem: tell α^(ab) apart from a random value. Both are believed hard.

Jun 2025 paper: q = 353, α = 3, Xₐ = 45, X_B = 50.

Yₐ = 3⁴⁵ mod 353 = 143. Y_B = 3⁵⁰ mod 353 = 155.

K = 155⁴⁵ mod 353 = 143⁵⁰ mod 353 = 197.

Nov 2022 paper: q = 11, α = 2, Xₐ = 2, X_B = 3.

Yₐ = 4, Y_B = 8, K = 8² mod 11 = 4³ mod 11 = 9.

Real-life example

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 = 2
Figure: Diffie-Hellman with q = 11 and alpha = 2
Figure 15.1: Diffie-Hellman exchange
Figure 15.1: Diffie-Hellman exchange

Same or opposite: public and private values in Diffie-Hellman

PointPublicPrivateSame or opposite
Valuesq, α, Yₐ, Y_BXₐ, X_B, KOpposite
Sent over the networkYesNeverOpposite
Needed to compute KYesYesSame
Known to an eavesdropperYesNoOpposite

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.

Back to the topic list

About Cryptography and Information Security

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.

Start with the latest papers

Cryptography and Information Security - Jun 2025

Cryptography and Information Security - Dec 2025

Cryptography and Information Security - Nov 2023

See all 5 papers →

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.