RE: Stream based RSA encryption?
- From: nickdu <nicknospamdu@xxxxxxxxxxxxxxxx>
- Date: Mon, 12 Jan 2009 04:20:01 -0800
OOB means? Object Oriented Base?
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
""Steven Cheng"" wrote:
Hi Nick,.
Yes, your conclusion is correct. Generally for large amount of data,
symmetric encryption is used due to performance consideration. And the
symmetric encryption key(we call it session key) is further secured via
asymmetric (such as RSA or DSA) encryption. The encrypted session key
itself is attached with the message body(encrypted via session key) just
like a message header(so that it can be decrypted later at receiver side.
Also, start from .NET 2.0, windows encryption (symmetric, asymmetric or
certifcicate based ..) have been much simplified via more OOB classes. You
can
http://www.codeproject.com/KB/security/SimpleEncryption.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
--------------------
From: =?Utf-8?B?bmlja2R1?= <nicknospamdu@xxxxxxxxxxxxxxxx>
References: <19967398-D4D8-4246-8EF5-71F5C01BF8EB@xxxxxxxxxxxxx>
Subject: RE: Stream based RSA encryption?
Date: Sun, 11 Jan 2009 12:26:24 -0800
key
After reading some more in the cryptography section I see that asymetric
encryption is not meant to be used on large amounts of data. Instead youRSA
should use public key encryption to encrypt a symetric key and
encrypt/decrypt using the symetric key.
That being said, if I want to encrypt data that will be stored, like in a
file or in the DB, I'm thinking I should do it as follows:
1. Create a symetric key.
2. Encrypt the symetric key with a public key.
3. Store the encrypted symetric key in the stream of encrypted data.
4. Encrypt the stream of data with the symetric key.
When I need to decrypt:
5. Decrypt the symetric key with the private key.
6. Decrypt the rest of the stream with the symetric key.
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
"nickdu" wrote:
Is there a stream based mechanism for encryption/decryption using the
withalgorithm? I found CryptoStream but so far I don't see that RSA works
CryptoStream.
--
Thanks,
Nick
nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com
- Follow-Ups:
- RE: Stream based RSA encryption?
- From: "Steven Cheng"
- RE: Stream based RSA encryption?
- References:
- Stream based RSA encryption?
- From: nickdu
- RE: Stream based RSA encryption?
- From: nickdu
- RE: Stream based RSA encryption?
- From: "Steven Cheng"
- Stream based RSA encryption?
- Prev by Date: RE: DCOM from .Net
- Next by Date: Re: DateTimePicker and MCM_SETDAYSTATE
- Previous by thread: RE: Stream based RSA encryption?
- Next by thread: RE: Stream based RSA encryption?
- Index(es):
Relevant Pages
|