| November 11, 2005 03:12:51 |
#2 |
| Neeraj Malhotra |
J2EE Expert Member Since: November 2005 Total Comments: 9 |
RE: How do you use RSA for both authentication and sec... |
| RSA is based upon public key/private key concept. For authentication one can encrypt the hash (MD5/SHA) of the data with his private key. This is known as digital signature. And secrecy is achieved by encrypting the data with the public key of the target user. Generally we dont use RSA for encryption because of key size (1024 bits). Rather a symmetric session key (128/256 bit) is established between communicating parties and is used for encryption. |
| |