Hi,
Consider a string that's being chosen by the end-user as his/her
password. In this scenario, consider it to be 5 characters long. How am
I supposed to encrypt this using the TripleDESCryptoServiceProvider?
The algorithm demands a given length of secret key, however, I cannot
force the user to enter exactly X characters long password! I'm really
confused.
Any help would be highly appreciated,
TIA,
Mehdi
Dominick Baier - 04 Dec 2006 14:34 GMT
Have a look at the PasswordDeriveBytes class. This allows to generate a fixed
length key from a password.
-----
Dominick Baier (http://www.leastprivilege.com)
> Hi,
> Consider a string that's being chosen by the end-user as his/her
[quoted text clipped - 8 lines]
> TIA,
> Mehd
mehdi - 06 Dec 2006 08:19 GMT
Wow, I just found the cure and removed my question from the group.
However, you were really fast that you answered my deleted message. :)
Thanks, though.
> Have a look at the PasswordDeriveBytes class. This allows to generate a fixed
> length key from a password.
[quoted text clipped - 14 lines]
> > TIA,
> > Mehdi