Solved

# If public key encrypts only private can decrypt and vice versa?

Posted on 2005-03-07
Medium Priority
364 Views
why we say "If public key encrypts only private can decrypt and vice versa" from the following?  thanks

Public key cryptography
–Asymmetric – two inversely related keys
•Private key
•Public key
–If public key encrypts only private can decrypt and vice versa
–Each party has both a public and a private key
–Either the public key or the private key can be used to encrypt a message
–Encrypted with public key and private key
•Proves identity while maintaining security
•RSA public key algorithm www.rsasecurity.com
0
Question by:she1
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 5

Accepted Solution

tmehmet earned 120 total points
ID: 13477221
public key is derived from the private key, therefore, the only person that can decrypt something that has been encrypted using a public key is the person who owns the corresponding private key.

The same is in the reverse, if you encrypt using the private key, anyone with the public key can decrypt it.

Both have practical benefits.

0

LVL 11

Expert Comment

ID: 13479906
There two ways of encrypting your data. One is to use a asymetric algorithm. the other one is to use a symetric algorithm. When you use a symetric algorithm, data is encrypted using a shared key. If subject A sends encrypted data to subject B, both subjects must share the same key. The problem arises when to share the key .. How can one be sure the key is transmited securely? How can one be sure, the key doesn't get into "bad" hands. ...

The public key encryption, uses a asymetric algorithm ... This means that pair keys are used and they exlude each other. If you encrypt data with one key, ONLY the other key can decrypt data. That's why, one of the keys is public the other one is private. The private key is never shared. The public key SHOULD BE SHARED. Therefore, there is no security issue here as the key is actually supposed to be PUBLIC.

One of the applications of the public key encryption, besides the encryption itself, is the use of digital signatures (by the way, the digital certificate is just a way to publish your public key and to ensure the public key is realy yours - this is where CA (certificate authorities) come in place - it's the same as someone is validtaing your passport). When you digitally sign a document, you apply the private key to it. Therefore, if you send the document to me, I must have your public key. As you can imagine, I can get your public key cause it's PUBLIC. Then I know, the message came indeed from you.

!!! All this info is put here in a simple way ... It might not look like, but it is!!!!

If you need further explanation, let me know.

Cheers.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
###### Suggested Courses
Course of the Month9 days, 19 hours left to enroll