Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / December 2006

Tip: Looking for answers? Try searching our database.

TripleDESCryptoServiceProvider - Secret Key Length

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mehdi - 04 Dec 2006 14:14 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.