I am trying to implement DES encryption in asp.net application from the given link:
as per given code its working fine but if i add one more character in bytes variable its throwing exception
static byte[] bytes = ASCIIEncoding.ASCII.GetBytes("ZeroCool"); //Working fine
static byte[] bytes = ASCIIEncoding.ASCII.GetBytes("ZeroCoola"); //throwing exception

Anybody have idea how to resolve this one?
Is there any limit of 8 character in DES encryption?
Thanks
DES supports 56-bit keys, so you can’t add another one. Actually 56 bits = 7 bytes, so I supposed
"Zerocool"worked because all the characters are standard ASCII, and those only take 7 bits each.That being said…
DES is a really old cipher. A 56-bit key can be easily bruteforced by a modern home computer. You should be using ciphers that support larger keys, like AES.
I read this at the end of the article:
Which has got me concerned. Passwords should never be encrypted. On the basis of that statement alone, I would disregard the entire article as useless.