Cryptography (BSc CSIT, CSC316): the questions likely to come
33 analyzed questions from 8 past papers (2074-2082), grouped by syllabus unit — each with its probability, how often it's been asked, and where to study the answer.
Explain the RSA algorithm. Show how encryption and decryption are performed. Choose two primes p=7 and q=11, compute the public and private key pairs and encrypt the message M=8.
RSA Algorithm
RSA is a public-key (asymmetric) cryptosystem whose security rests on the difficulty of factoring large integers.
Key Generation
- Choose two large primes and .
- Compute .
- Compute Euler's totient .
- Choose public exponent with and .
- Compute private exponent .
- Public key: Private key: .
Encryption / Decryption
- Encryption: .
- Decryption: .
Worked Example: , ,
Step 1 — n: .
Step 2 — totient: .
Step 3 — choose e: pick (since ).
Step 4 — compute d: find with . , so .
- Public key:
- Private key:
Step 5 — encrypt M = 8:
Using successive squaring mod 77:
- .
- ; .
(Check: decryption recovers the message.)
Number Theory and Asymmetric Ciphers
Explain the RSA algorithm. Show how encryption and decryption are performed. Choose two primes p=7 and q=11, compute the public and private key pairs and encrypt the message M=8.
Explain the Diffie-Hellman key exchange algorithm with an example. Show how an eavesdropper can perform a man-in-the-middle attack on this protocol.
State the Chinese Remainder Theorem and use it to solve a system of congruences.
Explain the ElGamal cryptographic system for encryption and decryption.
Illustrate the man in middle attack in Diffie – Hellman key exchange protocol. Assume the prime number be 19 and 10 as its primitive root. Select 5 as private key and 4 as random integer. Find the cipher text of M = 2 using Elgamal crypto system.
State and explain Fermat's little theorem and Euler's theorem with examples.
Explain modular arithmetic and Euler's totient function. Compute phi(35) and phi(24).
Is a man-in-the-middle attack possible in the Diffie-Hellman algorithm? Justify your answer.
State Fermat's theorem with example. What is the implication of discrete logarithm?
Differentiate between symmetric and asymmetric key cryptography with examples.
Sit a probable paper
A full mock exam built from the most likely questions, mirroring the real paper's structure. Every slot is a real past question.
Most Probable Paper
Mirrors the real structure · 60 marks · based on 8 past papers
- 1.[10 marks]
Explain the RSA algorithm. Show how encryption and decryption are performed. Choose two primes p=7 and q=11, compute the public and private key pairs and encrypt the message M=8.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
- 2.[10 marks]
Explain the Diffie-Hellman key exchange algorithm with an example. Show how an eavesdropper can perform a man-in-the-middle attack on this protocol.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
- 3.[10 marks]
Explain classical encryption techniques. Describe the Playfair cipher and the Hill cipher with examples of encryption.
This question has recurred in 3 of 8 years; so far only in internal assessments, not the board; and its topic (Symmetric Ciphers) appears in 100% of years.
- 1.[5 marks]
Explain the basic logic of malicious code: viruses, worms and trojan horses.
This question has recurred in 6 of 8 years; so far only in internal assessments, not the board; and its topic (Introduction) appears in 88% of years.
- 2.[5 marks]
Explain the ElGamal cryptographic system for encryption and decryption.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
- 3.[5 marks]
State and explain Fermat's little theorem and Euler's theorem with examples.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
- 4.[5 marks]
Explain the Caesar cipher and the mono-alphabetic substitution cipher with examples of their cryptanalysis.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Symmetric Ciphers) appears in 100% of years.
- 5.[5 marks]
Explain the families of SHA-2 and their differences from SHA-1.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Cryptographic Data Integrity Algorithms) appears in 100% of years.
- 6.[5 marks]
What is a Message Authentication Code (MAC)? Explain how HMAC works.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Cryptographic Data Integrity Algorithms) appears in 100% of years.
- 7.[5 marks]
Explain the goals of security: confidentiality, integrity and availability. List the different types of security attacks.
This question has recurred in 5 of 8 years; so far only in internal assessments, not the board; and its topic (Introduction) appears in 88% of years.
- 8.[5 marks]
State the Chinese Remainder Theorem and use it to solve a system of congruences.
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
- 9.[5 marks]
Explain modular arithmetic and Euler's totient function. Compute phi(35) and phi(24).
This question has recurred in 4 of 8 years; so far only in internal assessments, not the board; and its topic (Number Theory and Asymmetric Ciphers) appears in 100% of years.
Behind the numbers
The raw evidence the predictions are computed from: marks per unit per year, syllabus weights, trends, and coverage.
Show the heatmap, topic table and coverage analysis
The receipt: marks per unit, per year
Each row is a syllabus unit, each column an exam year, each cell the marks that unit earned that year. Click any cell to see the actual questions behind it.
| # | Syllabus unit | Probability | Appeared | Avg marks | Syllabus weight | Exam vs syllabus | Trend | Questions |
|---|---|---|---|---|---|---|---|---|
| 1 | U3Number Theory and Asymmetric Ciphers | Very likely100% | 23.8 | 31%14 lecture hrs | Balancedexam 32% · syllabus 31% | Fading | 7 recurring10 total | |
| 2 | U2Symmetric Ciphers | Very likely100% | 20 | 27%12 lecture hrs | Balancedexam 27% · syllabus 27% | Fading | 5 recurring9 total | |
| 3 | U4Cryptographic Data Integrity Algorithms | Very likely100% | 15.6 | 18%8 lecture hrs | Balancedexam 21% · syllabus 18% | Rising | 4 recurring6 total | |
| 4 | U1Introduction | Very likely88% | 10.7 | 11%5 lecture hrs | Balancedexam 12% · syllabus 11% | Rising | 3 recurring4 total | |
| 5 | U5Mutual Trust | Very likely88% | 7.1 | 13%6 lecture hrs | Balancedexam 8% · syllabus 13% | Steady | 2 recurring4 total |
Study smart, not hard
Drag the slider: studying the top 4 units in priority order covers ~92% of all observed marks.
- ~80% line
Lecture time vs exam marks
Where the exam pays more than the curriculum spends: ● lectures vs ● exam marks, as a share of the whole course. A long teal-leading bar = high-yield unit.