Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The way CryptoStream works
Message
De
26/12/2004 10:56:13
Chris Bohling
Myers and Stauffer LC
Shawnee, Kansas, États-Unis
 
 
À
25/12/2004 22:32:44
Information générale
Forum:
ASP.NET
Catégorie:
Cryptographie
Divers
Thread ID:
00972146
Message ID:
00972186
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>We send a custom key to encrypt and decrypt. But, all the rest is from the CryptoStream class.

By default, the Cryptostream class uses AES (Rijndael) encryption with a key size of 256 bits. This is currently the strongest form of symmetric encryption available. According to Microsoft (see http://www.gotdotnet.com/team/clr/cryptofaq.htm), the default encryption settings in .NET are always the strongest available at the time.

James McCaffrey describes the AES algorithm in "Encrypt It: Keep Your Data Secure with the New Advanced Encryption Standard," November 2003, http://msdn.microsoft.com/msdnmag/issues/03/11/AES/. According to McCaffrey:

"The AES algorithm is based on permutations and substitutions. Permutations are rearrangements of data, and substitutions replace one unit of data with another. AES performs permutations and substitutions using several different techniques."

The RNGCyptoServiceProvider in .NET can be used to create "random" keys and initialization vectors for AES. According to Michael Stuart and J Sawyer in "Cryptography: Employ Strong Encryption in Your Apps with Our CryptoUtility Component," November 2004: "While RNGCyptoServiceProvider is technically a pseudo-random generator, it is NIST-certified as cryptographically strong."

The Stuart and Sawyer article is available at http://msdn.microsoft.com/msdnmag/issues/04/11/CryptoUtility/default.aspx.

Good luck.
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform