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 / April 2006

Tip: Looking for answers? Try searching our database.

get default CryptoServiceProvider in C#2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
the whip - 25 Apr 2006 13:51 GMT
I have one password to encrypt and decrypt.  Old c++ code used obtained the
default CryptoServiceProvider to do this. I have written C#2005 code to
encrypt and decrypt a string(DES-CSP), but I don't see how to use the default
provider so that previuosly encrypted passwords will be readable.  Can anyone
point me to a code sample?
Alun Jones - 27 Apr 2006 16:22 GMT
> I have one password to encrypt and decrypt.  Old c++ code used
> obtained the default CryptoServiceProvider to do this. I have written
> C#2005 code to encrypt and decrypt a string(DES-CSP), but I don't see
> how to use the default provider so that previuosly encrypted
> passwords will be readable.  Can anyone point me to a code sample?

What does the "old C++ code" look like?  While it may be that it uses a
default service provider, it still needs to know what particular algorithm
set it uses.  Once you know that, you can select the appropriate matching
service provider in .NET.

Alun.
~~~~
[Please don't email posters, if a Usenet response is appropriate.]
Signature

Texas Imperial Software   | Find us at http://www.wftpd.com or email
23921 57th Ave SE         | alun@wftpd.com.
Washington WA 98072-8661  | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(425)807-1787 | Try our NEW client software, WFTPD Explorer.


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.