Michael,
The minimum text lengh for decryption depends on the algorithm block size
expressed in bytes in case you where using a block cipher algorithm like
DES, 3DES, RC2 or Rijndael. If you take for example 3DES with a defualt
blocksize of 64 bits (8 bytes), the minimum length will be 8 bytes. If your
encrypted data size is less then 8 bytes, the encription process will apply
padding to complete the 8 bytes (or a multiple of

size. So on every block
ci[her your encrypted data size will always be a multiple of the blocksize
algorithm.
Cheers,
Hernan
--
Hernan de Lahitte
Lagash Systems S.A.
http://weblogs.asp.net/hernandl
Shadowfax Dev Team
This posting is provided "AS IS" with no warranties, and confers no rights.
"Mike Carr" <> wrote in message
news:...
I followed the Guide "How To: Create an Encryption Library" of Building
Secure ASP.NET Applications: Authentication, Authorization, and Secure
Communication. I kept getting an error here:
decStream.FlushFinalBlock() whenever the text to Decrypt was under 7
characters. Is there a minimum text length that TripleDes can
Encrypt/Decrypt?
public byte[] Decrypt(byte[] bytesData, byte[] bytesKey)
{
....
decStream.FlushFinalBlock(); <=== HERE
....
} //end Decrypt
--
MICHAEL CARR