Jump to content

Recommended Posts

Posted

Hi all! I'm working on the following problem:

 

If the ciphertext message produced by RSA encryption with the key (e, n) = (5, 2881) is 0504 1874 0347 0515 2088 2356 0736 0468, what is the plaintext message?

 

My work thus far:

 

2881 = 43 * 67

 

phi(2881) = phi(43 * 67) = phi(43) * phi(67) = 42 * 66 = 2772

 

From here I need to find an inverse of 5 modulo 2772 which is 1109 and then raise each ciphertext block to power 1109 mod 2881 to retrieve the plaintext message.

 

I don't know how to do this last step...

 

0504^1109 = ____ (mod 2881)

 

How to fill in this blank above?

 

Please advise. Thanks!

Posted

Use Mathematica. It'll work out the answer extremely quickly. (I can't think about a mathematical way of doing it atm).

 

I get an answer of 400 precisely.

Posted
Use Mathematica. It'll work out the answer extremely quickly. (I can't think about a mathematical way of doing it atm).

 

I get an answer of 400 precisely.

 

What's the command you're using in Mathematica?

 

Can you give me an example here..

 

A sample run perhaps...

 

Thanks!

Posted

Just use the "Mod" function. For example, the command I used to calculate this was:

 

Mod[504^1109, 2881]

Posted
Just use the "Mod" function. For example' date=' the command I used to calculate this was:

 

Mod[504^1109, 2881']

 

Thanks a bunch!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.