Semester
Subject
Year
Tribhuwan University
Model
Bachelor Level / Third Year / Fifth Semester / Science
(Information Security)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
RSA is an asymmetric encryption algorithm where encryption is done using the receiver's public key and decryption using the receiver's private key, based on the mathematical difficulty of factoring large prime numbers.
Key Generation:
Encryption:
Decryption:
Given: Public key = (e, n) = (3, 55)
Step A: Find private key d
Since , we find p and q:
Compute Euler's totient:
Find d such that :
We need such that
Private key d = 27
Step B: Find Ciphertext for M = "hi"
Convert characters to numeric values (using position: a=1, b=2, ... h=8, i=9):
Encrypt 'h' (M = 8):
remainder
Encrypt 'i' (M = 9):
remainder
| Item | Value |
|---|---|
| Private key d | 27 |
| Ciphertext for 'h' | 17 |
| Ciphertext for 'i' | 14 |
| Ciphertext C | 17, 14 |
Conclusion: RSA's security relies on the difficulty of factoring large numbers. The public key (e, n) encrypts data, while only the holder of private key (d) can decrypt it, making it ideal for secure communication and digital signatures.
Short Answers Questions