CD-703-A Cryptography and Information Security

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

The most asked Cryptography and Information Security (CD-703-A) topics in RGPV papers are Chinese Remainder Theorem system of congruences, Steganography and its comparison with cryptography, Miller Rabin primality test for p = 23 and Simplified DES. We read the RGPV B.Tech CSE-DS semester 7 papers from 2023 and counted every question. Chinese Remainder Theorem system of congruences, Steganography and its comparison with cryptography, Miller Rabin primality test for p = 23 and Simplified DES came once each.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • Exams counted: 2023
  • All papers on this site: 1 (2023 to 2023)
  • Units asked most: Unit 1 and Unit 2
  • Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these

10 most repeated Cryptography and Information Security topics (2023)

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 a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Chinese Remainder Theorem system of congruences

Short answer. The Chinese Remainder Theorem (CRT) solves several congruences with pairwise coprime moduli. The solution is unique modulo M, the product of the moduli.

Asked 1 time in 2023 · Unit 1

From the papers

  • “Find the smallest non-negative solution to the following system of equation. x = 2 mod 3, x = 3 mod 5, x = 4 mod 11, x = 5 mod 16.” (November 2023)

Write these points

Method

  1. Find M = 3 x 5 x 11 x 16 = 2640.
  2. For each modulus find Mi = M / mi.
  3. Find the inverse yi of Mi modulo mi.
  4. Add the sum of ri x Mi x yi and reduce modulo M.
miriMiyiTerm ri x Mi x yi
3288011760
5352823168
114240109600
1651651310725

Add and reduce.

Sum = 1760 + 3168 + 9600 + 10725 = 25253.

25253 mod 2640 = 1973.

Check: 1973 mod 3 = 2, mod 5 = 3, mod 11 = 4 and mod 16 = 5.

Real-life example

A clock strikes every 3, 5, 11 and 16 minutes with fixed leftovers. CRT finds the first minute that fits every leftover at once.

Figure: steps of the Chinese Remainder Theorem
Figure: steps of the Chinese Remainder Theorem

Difference between CRT and trial search

PointCRTTrial searchSame or opposite
Finds a solutionYesYesSame
Work neededA few modular inversesMany guesses up to 2640Opposite
Gives all solutionsYes, 1973 + 2640kOnly the ones triedOpposite
Needs coprime moduliYesNoOpposite

Exam tip. Show the table of mi, Mi and yi and the final check.

Back to the topic list

Q2. Steganography and its comparison with cryptography

Short answer. Steganography hides the existence of a message inside a cover such as an image. Cryptography keeps the meaning secret even though everyone can see the message.

Asked 1 time in 2023 · Unit 1

From the papers

  • “What is steganography? Compare steganography with cryptography.” (November 2023)

Write these points

Common methods

  • Least significant bit (LSB) replacement in image pixels.
  • Hiding data in audio or video samples.
  • Character marking and invisible ink in text.
  • Hiding data in unused packet header fields.

Best use

The two work well together. Encrypt first, then hide the cipher text, so a finder still cannot read it.

LSB hiding.

A pixel has red value 10110100. To hide bit 1, change the last bit.

New value = 10110101.

The colour changes by 1 out of 255, which the eye cannot see.

Real-life example

A spy can lock a letter in a safe (cryptography). Another spy hides the letter inside a hollow book so nobody looks for it (steganography).

Figure: hiding a message in a cover image
Figure: hiding a message in a cover image

Difference between Steganography and cryptography

PointSteganographyCryptographySame or opposite
Aim is secrecyYesYesSame
What is hiddenThe existence of the messageThe meaning of the messageOpposite
Attacker seesOnly a normal coverVisible cipher textOpposite
Key may be usedYesYesSame
WeaknessFails once foundCipher text can be attackedOpposite

Exam tip. Give the LSB example and the comparison table.

Back to the topic list

Q3. Miller Rabin primality test for p = 23

Short answer. The Miller Rabin test checks whether n is probably prime. It writes n - 1 as 2^s x d and tests a random base a.

Asked 1 time in 2023 · Unit 1

From the papers

  • “Apply the Miller Rabin test to p = 23.” (November 2023)

Write these points

Steps

  1. Write n - 1 = 2^s x d with d odd.
  2. Pick a base a with 1 < a < n - 1.
  3. Compute x = a^d mod n. If x = 1 or x = n - 1, n passes.
  4. Square x up to s - 1 times. If any result is n - 1, n passes.
  5. Otherwise n is composite.

Test of p = 23.

n - 1 = 22 = 2 x 11, so s = 1 and d = 11.

Base 2: 2^11 = 2048 = 89 x 23 + 1, so x = 1. The test is passed.

Base 3: 3^11 mod 23 = 1. Passed again.

23 is declared probably prime. It is truly prime.

A composite number passes one base with probability at most 1/4. After k bases the error chance is at most 4^(-k).

Real-life example

A metal detector at a gate can miss a rare item. If ten different detectors all stay silent, the bag is almost surely clean.

Figure: Miller Rabin test
Figure: Miller Rabin test

Difference between Miller Rabin and trial division

PointMiller RabinTrial divisionSame or opposite
Tests primalityYesYesSame
Speed for big numbersFastVery slowOpposite
Answer typeProbably primeCertainOpposite
Randomness usedYesNoOpposite

Exam tip. Write n - 1 = 2^s x d first and then show one full base.

Back to the topic list

Q4. Simplified DES

Short answer. Simplified DES (S-DES) is a teaching cipher with the same design as DES but a 10-bit key, 8-bit blocks and two rounds.

Asked 1 time in 2023 · Unit 2

From the papers

  • “Explain simplified version of DES.” (November 2023)

Write these points

Parts

  • Key generation: P10, left shift, P8 gives K1. Two more shifts then P8 give K2.
  • Initial permutation IP and its inverse.
  • Round function f: expand and permute (EP) the right half to 8 bits, XOR with the subkey, pass through S-boxes S0 and S1, then permute with P4.
  • Switch (SW) swaps the two halves between the rounds.

Encryption is IP, fK1, SW, fK2, then inverse IP. Decryption uses the same steps with K2 first and K1 second.

Worked run.

Key 1010000010 gives K1 = 10100100 and K2 = 01000011.

Plain text 10010111 gives IP = 01011101.

Round 1 output is 10101101. After swap it is 11011010. Round 2 output is 00101010.

Inverse IP gives cipher text 00111000.

Real-life example

Learning to drive in a small car with two gears teaches the same ideas as a big truck. S-DES teaches DES on a pocket scale.

Figure: encryption flow of S-DES
Figure: encryption flow of S-DES

Difference between S-DES and DES

PointS-DESDESSame or opposite
Feistel structureYesYesSame
Key size10 bits56 bitsOpposite
Block size8 bits64 bitsOpposite
Rounds216Opposite
Used for real securityNoOnce, now obsoleteOpposite

Exam tip. Draw the steps of encryption and give the key generation.

Back to the topic list

Q5. Triple DES encryption

Short answer. Triple DES (3DES) applies DES three times to each block with two or three keys. It was made to stretch the life of DES after its 56-bit key became too short.

Asked 1 time in 2023 · Unit 2

From the papers

  • “Explain Triple DES Encryption.” (November 2023)

Write these points

Encrypt, decrypt, encrypt (EDE)

  1. Encrypt the block with key K1.
  2. Decrypt the result with key K2.
  3. Encrypt again with key K3.
  4. Formula: C = E(K3, D(K2, E(K1, P))).

Key options

  • Three keys: 168 bits, effective strength about 112 bits.
  • Two keys: K3 = K1, 112 bits, about 80 bits effective.
  • If K1 = K2 = K3, EDE becomes single DES. This gives backward compatibility.

Double DES is not used because a meet in the middle attack breaks it with about 2^57 work instead of 2^112.

Cost of the key space.

One DES key has 2^56 choices.

Three keys give 2^168 choices on paper.

The meet in the middle attack cuts this to about 2^112.

Real-life example

Locking a box with one lock is easy to pick. Three different locks in sequence take far longer, though each lock is the same old model.

Figure: Triple DES in EDE mode
Figure: Triple DES in EDE mode

Difference between Triple DES and DES

Point3DESDESSame or opposite
Uses the DES round functionYesYesSame
Key length112 or 168 bits56 bitsOpposite
SpeedAbout 3 times slowerFasterOpposite
Strength todayAcceptable but retiredBrokenOpposite

Exam tip. Write the EDE formula and the three key options.

Back to the topic list

Q6. Encryption and decryption in elliptic curve cryptography

Short answer. Elliptic Curve Cryptography (ECC) encrypts a message point Pm with the receiver's public key. It follows an ElGamal style scheme on the curve.

Asked 1 time in 2023 · Unit 2

From the papers

  • “How can we encrypt and decrypt a message in ECC?” (November 2023)

Write these points

Set up

  • Curve y^2 = x^3 + ax + b mod p and a base point G of order n.
  • Receiver picks private key nB and publishes PB = nB x G.
  • Message is first mapped to a curve point Pm.

Steps

  1. Sender picks a random k.
  2. Cipher text is the pair Cm = (kG, Pm + k PB).
  3. Receiver computes nB x kG.
  4. Decrypt: Pm = (Pm + k PB) - nB(kG).

Curve y^2 = x^3 + 2x + 2 mod 17, G = (5, 1).

nB = 7 gives PB = (0, 6). Message point Pm = (3, 1). Sender picks k = 3.

kG = (10, 6) and k PB = (6, 3), so Pm + k PB = (16, 13).

Receiver finds nB x kG = 7 x (10, 6) = (6, 3).

(16, 13) - (6, 3) = (3, 1). The message is recovered.

Real-life example

A sender places a letter in a box that only the receiver's key can open. The random k is a fresh seal added to every box.

Figure: ECC encryption and decryption
Figure: ECC encryption and decryption

Difference between ECC and RSA

PointECCRSASame or opposite
Public key encryptionYesYesSame
Key size for the same strengthAbout 256 bitsAbout 3072 bitsOpposite
Hard problemElliptic curve discrete logFactoringOpposite
Uses a random k per messageYes, in this schemeNo for plain RSAOpposite

Exam tip. Give the pair Cm and one numeric run on a small curve.

Back to the topic list

Q7. Firewall and its types

Short answer. A firewall sits between a trusted network and an untrusted network such as the internet. It filters traffic by security rules.

Asked 1 time in 2023 · Unit 5

From the papers

  • “What is Firewall? What are the types of Firewall?” (November 2023)

Write these points

Types

  • Packet filtering: checks IP addresses, ports and protocol in each packet.
  • Stateful inspection: tracks the state of each connection.
  • Application level gateway (proxy): works on application data such as HTTP.
  • Circuit level gateway: relays TCP connections after the handshake.
  • Next generation firewall: adds deep packet inspection and intrusion prevention.

Design goals

  1. All traffic passes through the firewall.
  2. Only authorised traffic is allowed.
  3. The firewall itself is secure.

Real-life example

A security guard at a hostel gate checks a list of visitors. A better guard also remembers who went in and asks what they carry.

Figure: firewall types by layer
Figure: firewall types by layer

Difference between Packet filter and application gateway

PointPacket filterApplication gatewaySame or opposite
Blocks unwanted trafficYesYesSame
Layer usedNetwork and transportApplicationOpposite
SpeedFastSlowerOpposite
Sees message contentNoYesOpposite

Exam tip. List the five types and say what each one checks.

Back to the topic list

Q8. Fermat's theorem and Euler's totient function

Short answer. Fermat's little theorem: if p is prime and a is not a multiple of p, then a^(p-1) = 1 mod p. Euler's totient phi(n) counts the numbers below n that are coprime to n.

Asked 1 time in 2023 · Unit 1

From the papers

  • “Explain Fermat's Theorem. What is Euler's totient?” (November 2023)

Write these points

Facts

  • For a prime p, phi(p) = p - 1.
  • For primes p and q, phi(pq) = (p - 1)(q - 1).
  • Euler's theorem: a^phi(n) = 1 mod n when gcd(a, n) = 1.
  • Fermat's theorem is the special case n = p.

Uses

RSA depends on these results. They show why decryption with d reverses encryption with e.

Check with numbers.

Fermat: 2^6 mod 7 = 64 mod 7 = 1.

phi(21) = 2 x 6 = 12.

Euler: 5^12 mod 21 = 1 and 10^12 mod 21 = 1.

Real-life example

On a clock with 12 positions, repeating a fixed jump enough times brings you back to the start. These theorems say how many jumps are enough.

Figure: from Fermat to Euler to RSA
Figure: from Fermat to Euler to RSA

Difference between Fermat's theorem and Euler's theorem

PointFermatEulerSame or opposite
Gives a power equal to 1YesYesSame
ModulusPrime pAny nOpposite
Exponentp - 1phi(n)Opposite
Needs coprime baseYesYesSame

Exam tip. State both theorems and show one number check.

Back to the topic list

Q9. Transposition cipher with an example

Short answer. A transposition cipher rearranges the positions of the plain text letters. The letters are not changed, only their order.

Asked 1 time in 2023 · Unit 1

From the papers

  • “Explain Transposition Cipher with an example.” (November 2023)

Write these points

Columnar transposition

  1. Choose a keyword such as ZEBRA.
  2. Write the plain text in rows under the keyword.
  3. Number the columns by the alphabetical order of the key letters.
  4. Read the columns in that order to get the cipher text.
ZEBRA
ATTAC
KATDA
WNXXX

Encrypt ATTACKATDAWN.

Column order by key letters: A, B, E, R, Z.

Read column A, then B, E, R, Z.

Cipher text = CAX TTX TAN ADX AKW.

Padding X fills the last row.

Real-life example

Shuffling the pages of a diary changes nothing on the pages. A reader who does not know the order cannot follow the story.

Figure: columnar transposition steps
Figure: columnar transposition steps

Difference between Transposition and substitution

PointTranspositionSubstitutionSame or opposite
Classical cipherYesYesSame
What changesOrder of lettersThe letters themselvesOpposite
Letter frequencyUnchangedChangedOpposite
Combined in modern ciphersYesYesSame

Exam tip. Give the ZEBRA grid and read the columns in order.

Back to the topic list

Q10. Comparison of SHA-1 and MD5

Short answer. MD5 gives a 128-bit digest and SHA-1 gives a 160-bit digest. Both process 512-bit blocks but SHA-1 is slower and somewhat stronger.

Asked 1 time in 2023 · Unit 3

From the papers

  • “Give comparison of SHA-1 and MD 5.” (November 2023)

Write these points

PointMD5SHA-1
Digest length128 bits160 bits
Block size512 bits512 bits
Steps64 (4 rounds of 16)80 (4 rounds of 20)
Word size32 bits32 bits
Brute force effort2^64 for collision2^80 for collision

Status

  • Both use the Merkle Damgard idea with padding and a length field.
  • Practical collisions are known for both.
  • Both end with a fixed length digest whatever the input size.
  • Do not use either for signatures or passwords. Use SHA-256 or SHA-3.

Digest of an empty string.

MD5 gives d41d8cd98f00b204e9800998ecf8427e, which is 32 hex digits.

SHA-1 gives da39a3ee5e6b4b0d3255bfef95601890afd80709, which is 40 hex digits.

Hex digits x 4 equals bits, so 128 and 160.

Real-life example

Two shops stamp a fingerprint on parcels. One uses a small stamp and the other a bigger one, but a clever thief can copy both today.

Figure: digest sizes of MD5 and SHA-1
Figure: digest sizes of MD5 and SHA-1

Difference between SHA-1 and MD5

PointSHA-1MD5Same or opposite
Hash functionsYesYesSame
Digest160 bits128 bitsOpposite
Rounds of steps8064Opposite
Safe for new designsNoNoSame

Exam tip. Make a table of digest, block, steps and attacks.

Back to the topic list

Cryptography and Information Security in CSE (Data Science)

Cryptography and Information Security is a Semester 7 subject in CSE (Data Science), under the paper code CD-703-A. Computer Science and Engineering studies the same subject in the same semester as CS-703-A, and its full unit-wise brief is on the Computer Science and Engineering page. In Semester 7 of CSE (Data Science) you study it along with Data Engineering, Data Analytics and Visualization and Cloud Computing.

Cryptography and Information Security is in Semester 7, the same as CSE. Units 1 and 2 are the mathematical part (classical ciphers, AES and public key), and Units 3 to 5 apply it to messages, hashes and tools, so keep to that order.

We hold 1 previous year paper for Cryptography and Information Security in CSE (Data Science), from 2023. The papers list opens each one, newest first.

Cryptography and Information Security units at a glance

  1. Mathematical background and classical cryptography
  2. AES and public key cryptography
  3. Message authentication and hash functions
  4. Information security
  5. Cryptography and information security tools

The unit list follows 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)). Check your own branch's scheme document if a unit differs. For the topics inside each unit, open the Cryptography and Information Security notes.

Start with the latest papers

Cryptography and Information Security - Nov 2023

See all 1 papers →

Cryptography and Information Security (CD-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: Chinese Remainder Theorem system of congruences (1 times); Steganography and its comparison with cryptography (1 times); Miller Rabin primality test for p = 23 (1 times); Simplified DES (1 times); Triple DES encryption (1 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 (2023). 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 10 most repeated topics of Cryptography and Information Security (CD-703-A) for RGPV B.Tech CSE-DS semester 7, counted from the previous year papers on this site.