RE: Stream based RSA encryption?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


After reading some more in the cryptography section I see that asymetric
key
encryption is not meant to be used on large amounts of data. Instead you
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
RSA
algorithm? I found CryptoStream but so far I don't see that RSA works
with
CryptoStream.
--
Thanks,
Nick

nicknospamdu@xxxxxxxxxxxxxxxx
remove "nospam" change community. to msn.com



.



Relevant Pages

  • RE: Stream based RSA encryption?
    ... Microsoft MSDN Online Support Lead ... OOB means? ... symmetric encryption is used due to performance consideration. ... Create a symetric key. ...
    (microsoft.public.dotnet.framework)
  • RE: Stream based RSA encryption?
    ... symmetric encryption is used due to performance consideration. ... symmetric encryption key(we call it session key) is further secured via ... encrypt/decrypt using the symetric key. ... Store the encrypted symetric key in the stream of encrypted data. ...
    (microsoft.public.dotnet.framework)
  • RE: Stream based RSA encryption?
    ... Is there a standard format for including the encrypted session key in the ... symmetric encryption is used due to performance consideration. ... encrypt/decrypt using the symetric key. ... Store the encrypted symetric key in the stream of encrypted data. ...
    (microsoft.public.dotnet.framework)
  • SSL question 128bit, 1024,2048 key lengths?
    ... On one end browsers and certificates are quoted as being ... 128bit encryption yet when preparing a CSR you ... using PKE and that the symetric key would be the smaller 128 bit... ...
    (comp.security.misc)
  • Re: More shooter harassment
    ... On 7/23/2011 9:47 PM, nospam wrote: ... it *requires* physical possession and even if the thug has the phone, ... they still won't get far due to the encryption and the fact that it can ...
    (rec.photo.digital)