N
Nak
Hi there,
I have just managed to get some methods together that encrypt data using
RSA encryption. 2 Keys are serialized and saved as files, one public and
one private, this way I can specify which key is used to decrypt/encrypt the
data, all works well, except...
I was under the impression that with RSA encryption you could do the
following,
1. Encrypt data (x) using the public key *ok*
2. Decrypt data (x) using the private key *ok*
3. Encrypt data (y) using the private key *ok*
4. Decrypt data (y) using the public key *problem*
5. Encrypt data (z) using the public key *ok*
6. Decrypt data (z) using the public key *problem*
7. Encrypt data (a) using the private key *ok*
8. Decrypt data (a) using the private key *ok*
I wasn't *totally* sure on the concepts of RSA encryption, maybe I have
written something wrong along the lines? Either that or the articles I have
been reading are wrong (which is more that possible). Anyone got any
thoughts on this? Thanks in advance.
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
I have just managed to get some methods together that encrypt data using
RSA encryption. 2 Keys are serialized and saved as files, one public and
one private, this way I can specify which key is used to decrypt/encrypt the
data, all works well, except...
I was under the impression that with RSA encryption you could do the
following,
1. Encrypt data (x) using the public key *ok*
2. Decrypt data (x) using the private key *ok*
3. Encrypt data (y) using the private key *ok*
4. Decrypt data (y) using the public key *problem*
5. Encrypt data (z) using the public key *ok*
6. Decrypt data (z) using the public key *problem*
7. Encrypt data (a) using the private key *ok*
8. Decrypt data (a) using the private key *ok*
I wasn't *totally* sure on the concepts of RSA encryption, maybe I have
written something wrong along the lines? Either that or the articles I have
been reading are wrong (which is more that possible). Anyone got any
thoughts on this? Thanks in advance.
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\