MHB RSA algorithm to encrypt "abcdefghij"

  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Algorithm
AI Thread Summary
The discussion revolves around calculating values in an RSA encryption context using the primes p=5 and q=11. The value of z is determined to be 40, and d is chosen as 27, which is relatively prime to z. The modular inverse of d mod z is calculated to be e=3. The final calculation for the ciphertext C is performed using the formula C=M^e mod n, with M set to 4. The result of the calculation shows that C equals 9, confirming the correctness of the computations presented.
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.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
7
Views
2K
Replies
2
Views
1K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
12
Views
2K
Back
Top