Ask a Question related to ASP.NET Security, Design and Development.
-
JW #1
encrypt
I can encrypt the contents of a memory stream with no problems, however when
decrypting( I'm using the same key an IV ) I get an exception stating bad
data.
I'm at a lost. I'm actually creating a new memory stream, filling it with
the encrypted bytes then trying to read from the crypto stream object. I
have used the same approach encrypting to a file handle and then decrypting
from the same file and it works.
sample: (this same code works with a file stream but not memory stream) what
am I missing?
MemoryStream memStrEnc2 = new MemoryStream(newByte, 0, newByte.Length);
CryptoStream decStream = new CryptoStream(memStrEnc2,
tdes.CreateDecryptor(random, random), CryptoStreamMode.Read);
byte[] memString2 = new Byte[memStrEnc2.Length];
decStream.Read(memString2, 0, 16);
decStream.Close();
Thank you for your time
Josiah
JW Guest
-
A need to encrypt passwords?
Do you need to encrypt passwords if the entire application is using SSL security? -
Encrypt key
Hello, I want to use the encrypt and decrypt function for my passwords. Can someone give me an example what key shoul I be using. My password... -
When to encrypt
On 12/6/2004 6:10 PM, Greg Stark wrote: I was wondering where he keeps his servers. Are they kept under a little rain shelter on the parking lot,... -
How to Encrypt password
In the web.config how do you generate the encrypted string that can be used to store password of the identity element? -
Encrypt in Perl, De-encrypt in Javascript
I got a javascript off the net which encrypt and de-encrypt HTML code so that nobody can read the public html file. here is the code of...



Reply With Quote

