Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CryptoStream class and Memory Streams
Message
From
29/10/2003 10:22:05
 
 
To
All
General information
Forum:
ASP.NET
Category:
Security
Title:
CryptoStream class and Memory Streams
Miscellaneous
Thread ID:
00844087
Message ID:
00844087
Views:
65
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.
Next
Reply
Map
View

Click here to load this message in the networking platform