Re: Encryption Error "Length of the data to decrypt is invalid"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jimski (jimski.brock_at_gmail.com)
Date: 03/15/05


Date: 15 Mar 2005 05:12:34 -0800

Thanks Dale,

Your code identified an area that I was implementing wrong.

In my decryption routine I should have populated the memory stream with
the bytes and then created the CryptoStream. Writing them afterwards
was causing problems.

Cheers for you help.
Jimski