Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CryptoStream class and Memory Streams
Message
De
29/10/2003 10:22:05
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Securité
Titre:
CryptoStream class and Memory Streams
Divers
Thread ID:
00844087
Message ID:
00844087
Vues:
67
Many of the cryptography API examples I have run into use the CryptoStream class and file streams to encrypt/decrypt files.

I have been able to use file streams with the CryptoStream class successfully. However, in the scenario in which encrypted data is held in a string variable, I would like to use a MemoryStream in conjunction with the CryptoStream class to decrypt the encrypted string. In attempting this I have been getting a "Bad Data" error when the decryption takes place. Has anyone used memory streams with the CryptoStream class and is there some particular way in which the data must be loaded from a string variable into the memory stream in order to be in proper form to be operated on by the CryptoStream class?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform