Skip to main content

UGC-NET Computer Science (RSA-Algorithm Solution)

UGC-NET RSA-Algorithm Solution



Using RSA algorithm, what is the value of cipher text C, if the plain text M = 5 and p = 3, q = 11 & d = 7 ? 
(A) 20
(B) 52 
(C ) 26 
(D )31

Solution:-

All the values are given i.e.
p=3,
q=11
      then n=(p * q) = (3 * 11)=33
   Find value of m=(p-1)*(q-1) = (2 * 10)=20

Find a small odd integer e, that is relatively prime to m.

If e=3, then GCD(3,20)=1. e should be small and prime and so we let e=3. Value of d is given, d=7.
Public key = (e,n).

To encrypt a message, we apply the public key to the function 

E(m) = me(mod n)
then:-
   =53(mod 33)
   = 125 (mod 33)
   = 26
As a result, the encrypted message E(M) = 26.
It is the transmitting message.

Comments

Popular posts from this blog

O Level Practical Queestion Paper (MS-OFFICE, MSDOS, MS-EXCEL, ICT Resources)

MSDOS 1. Write command to display all files having extension ‘jpg’. 2. Write command to display all files of all types starting with letter ‘m’. 3. Write command to display all files having names up to ten characters with second last letter as ‘n’, e.g. intelligent. 4. Write a command to copy the file mars of type exe from the directory ‘space’ of drive U to another directory “universe” in drive S. 5. Write a command to delete the directory as well as the files of the directory ‘world’ on drive E. 6. Write command to display all file names on the disk in drive A and having an extension of no more than two characters.   7. Write command to copy all the files beginning with ‘m’ and whose file names has a ‘txt’ extension from drive A to the ‘\document’ directory on drive C. 8. Write set of commands to create a subdirectory of the root directory called ‘exercise’, and then move into it 9. Perform the following tasks using DOS commands in the DOS sh...

Learn Programming in UNIX

Q: - Write a program to input two numbers and add them?             gedit add.sh             clear             echo “enter two numbers:”             read a             read b             sum=`expr$a+$b`             echo $sum Syntax for if-else:- (1)          if test condition             then                 ---------                 --...

IICS College 15th August Celebration Day

IICS COLLEGE  15th August Celebration Day