• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Encryption help

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

Im not sure if I am allowed to ask this question here but its related to Java so i hope so. I am going to write an encryption code with java but what i have to do first is an encryption and decryption "test" with RSA using p = 7, q = 11, e = 17 and ”plaintext” M = 8. ( i know that M is the secret message we wanna encrypt here)

I have understood so far that pq = n which is 77
n is one of the public keys
and getting the φ(n) totient i use Eulers function and get the answer 60

so i have n = 77, φ= 60 and e = 17 and M = 8


My ISSUE however is finding d!! In other words the private key. I know im supposed to use Euclids algorithm but i just dont get it. Ive read and tried like a million times, since yesterday and i cannot get it in to my head. I need easy instructions as it seems im a total brain dead person when it comes to maths
I need to use this type of calculation later on in a java code so I really need to understand how i encrypt.

IF anyone is used to this and willing to help id love if you could. A classmate said that the answer to d will be 53.
I just dont get how he got that number thouht....since i dont get euclids algorithm.

THanks in advance

 
Patricia Andersen
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Too bad no one could help
Im still trying to understand this as hard as i can. Id really appriciate any sort of help
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean too bad you couldn't wait 40 minutes for a reply?

I shall move this discussion as too difficult for “beginning”.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic