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?
> 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.