Re: No way to encrypt with private key in C#?
- From: "Peter Webb" <webbfamily@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 4 Feb 2008 17:42:08 +1100
"Alun Harford" <devnull@xxxxxxxxxxxxxxxxx> wrote in message news:%23n7ijGuZIHA.484@xxxxxxxxxxxxxxxxxxxxxxx
Alun Harford wrote:Sin Jeong-hun wrote:Hello.
As far as my naive textbook knowledge goes;
1)if a file is encrypted with the private key, then it can be
decrypted with the public key,
2)if a file is encrypted with the public key, then it can be decrypted
with the private key.
Only (2) is true.
Re-reading the question, they're both true.
No.
1. is not true. I think the OP (and possibly yourself) is confused by the fact that most real systems have two public and two private keys - one for each end of the link. If a file encrypted with the private key could be decrypted with just the public key, it would be a pretty piss-poor security mechanism. What actually happens is that the sender encrypts with the recipient's public key, not his own (public or private) key.
.
- Follow-Ups:
- Re: No way to encrypt with private key in C#?
- From: Lasse Vågsæther Karlsen
- Re: No way to encrypt with private key in C#?
- References:
- No way to encrypt with private key in C#?
- From: Sin Jeong-hun
- Re: No way to encrypt with private key in C#?
- From: Alun Harford
- Re: No way to encrypt with private key in C#?
- From: Alun Harford
- No way to encrypt with private key in C#?
- Prev by Date: Re: Cdata, C# and XML
- Next by Date: RE: seeking correct approach to combine features of linq datasource vs datasourceID
- Previous by thread: Re: No way to encrypt with private key in C#?
- Next by thread: Re: No way to encrypt with private key in C#?
- Index(es):
Relevant Pages
|