RSA algorithm, Cipher class
843810Jul 27 2002 — edited Jul 29 2002Hi,
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