Click here to Skip to main content
15,894,003 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys

I just looked at an article and I might be missing something here
RSA Private Key Encryption[^]

Now as far as i understand with RSA encryption is that you generate a public and a private key.

The public key is sent to the remote pc to use to encrypt data with so you can decrypt it with the private key and the remote pc sends you its public key to encrypt data with so it can decryptt he data with its own private key.

It appears however in this article and several others that they use the private key to encrypt data , makign the public key the decryption key , wouldnt that defeat the purpose of assemetric encryption meaning if someone intercepted the public key they could decrypt data sent from your pc ?

Very confused or just missing somethign
Posted

1 solution

Address to the author of this article. I'm too lazy to read it. Load the page of this article, locate the section "Comments and Discussions" at the end and use "Add a Comment or Question" to ask your question.

However, if instead you need to understand how not to defeat the purpose of asymmetric encryption, read the article where this not-so-trivial logic is explained really correctly:
http://en.wikipedia.org/wiki/Public-key_cryptography[^].

This is just a matter of one-in-a-lifetime enlightenment.

—SA
 
Share this answer
 
v3
Comments
L Viljoen 19-Sep-12 3:57am    
having read the article , and having skimmed over the comments i can honestly say I would have a better chance going straight to the Question section that waiting for a handfull of people to hopefully give me a usefull answer. But thx for the wiki link.
Sergey Alexandrovich Kryukov 19-Sep-12 17:04pm    
I'm not sure what could be the most helpful, but I'm pretty much sure this Wiki article explains all you need to understand. If you have some follow-up questions, for example, on .NET implementation of encryption, I'll gladly try to answer.
--SA
L Viljoen 20-Sep-12 2:34am    
The most helpfull answer would be one that tells me for instance.

"that my understanding of the public private key distribution is incomplete, and that i should do the following..."

Not saying teh answer isnt helpfull but a nushell explanation would recieve full marks :)
Sergey Alexandrovich Kryukov 20-Sep-12 11:28am    
I think you can find out what to do exactly, because you should know much better what you need. This article helped many to understand the logic behind, so I hope it's quite enough for you to understand it.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900