|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TripleDESCryptoServiceProvider - Secret Key LengthHi,
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 Have a look at the PasswordDeriveBytes class. This allows to generate a fixed
length key from a password. ----- Dominick Baier (http://www.leastprivilege.com) Show quoteHide quote > 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 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. Dominick Baier wrote: Show quoteHide quote > 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 > > 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
Newbie Security Question
Is there a limit to number record returned from AD serach to a dat Encrypt Email with Certificate Natively in .Net Code signing - recommended cerificate provider? what NewsGroup tools do you use? Signing a .NET Application permission problems Authorization Manager Problem Help in signing SoapEnvelope using wse 3.0 Using Caspol to change Security Policy - Code Groups # different on different PC ??? |
|||||||||||||||||||||||