Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RSA algorithm, Cipher class

843810Jul 27 2002 — edited Jul 29 2002
Hi,
I'd appreciate advice on the following cryptography questions:

1) the equation for encrypting a message using RSA is given as c = m**e (mod n) where m is the plaintext message, c is the encrypted message, e and n are the two numbers forming the public key. Now, this equation expresses a relationship between 2 numbers c and m. What is the relationship between c, m and the associated text? For example, suppose my plaintext message is "hello world". How is this string converted to a number m? How is the resulting number c converted to a ciphertext string like "xCM-D!em"?

2) I can't find any thing in the Sun Java tutorial that discusses the new encryption classes in SDK 1.4 Can anyone suggest where I can look for such? (the security track in the Sun Java tutorial was written for 1.2)

Regards,
Joe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2002
Added on Jul 27 2002
4 comments
415 views