I have a public key which is used to encrypt some binary data. How can I write the code that can decrypt this data with the same public key ?
Asked
Active
Viewed 81 times
0
-
Take a look at this thread: http://stackoverflow.com/questions/15554296/simple-java-aes-encrypt-decrypt-example – Edwin Torres Jul 30 '14 at 11:52
1 Answers
3
You can't - the whole point about public/private-key-cryptography like RSA is that when you encrypt some data using a public key you can only decrypt it using the matching (!) private key. So without the proper private key you won't be able to recover your AES-key and you won't get back to your cleartext.

piet.t
- 11,718
- 21
- 43
- 52