Jump to content

Rsa

Featured Replies

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!

  • Author
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!

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

 

Mod[504^1109, 2881']

 

Thanks a bunch!

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.