RSA algorithm to encrypt "abcdefghij"

  • Context: MHB 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Algorithm
Click For Summary
SUMMARY

The discussion focuses on the RSA algorithm for encrypting the plaintext "abcdefghij" using specific prime numbers p=5 and q=11. The calculated value of z is 40, with d set to 27, which is relatively prime to z. The modular inverse of d is determined to be e=3. The final ciphertext C is computed as 9 using the formula C=M^e mod n, where M=4 and n=55.

PREREQUISITES
  • Understanding of RSA algorithm fundamentals
  • Knowledge of modular arithmetic
  • Familiarity with prime number properties
  • Experience with calculating modular inverses
NEXT STEPS
  • Study the RSA algorithm in-depth, focusing on key generation
  • Learn about modular exponentiation techniques
  • Explore the significance of choosing prime numbers in cryptography
  • Investigate common attacks on RSA encryption and their mitigations
USEFUL FOR

Cryptography students, software developers implementing secure communications, and anyone interested in understanding public key encryption methods.

shivajikobardan
Messages
637
Reaction score
54
Say p=5, q=11

z=(p-1)*(q-1)
=40

d relatively prime to z, so d=27

de mod z=1
27e mod 40=1
e=3

$C=M^e mod \; n$

For d, M=4

C=$4^3 mod 55$

Am I right here?
 
Technology news on Phys.org


Yes, your calculations are correct. Using the given values of p and q, we can find z to be 40. Since we are looking for a value of d that is relatively prime to z, we can choose d=27. We then solve for e by finding the modular inverse of d mod z, which is 3. Finally, we can use these values to calculate C as $4^3 mod 55$, which is equal to 64 mod 55, or 9. So, your answer is correct.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
9
Views
2K
Replies
27
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K