Does anyone know where I can find the source code to the TripleDES algorithm in C#? I found it in Java and C++, but not C#. I found the calls to Encrypt() & Decrypt(), but not the source itself. Yes, I could translate it from C++ or Java; but I don't want to re-invent the wheel. Thanks,
Hello! You wrote on Mon, 25 Feb 2008 08:27:02 -0800: BS> Does anyone know where I can find the source code to the TripleDES BS> algorithm in C#? I found it in Java and C++, but not C#. I found the BS> calls to Encrypt() & Decrypt(), but not the source itself. Yes, I BS> could translate it from C++ or Java; but I don't want to re-invent the BS> wheel. Try BouncyCastle, they must have it in their C# port. With best regards, Eugene Mayevski http://www.SecureBlackbox.com - the comprehensive component suite for network security
That's probably the best bet. The .NET framework calls down into the unmanaged CryptoAPI for its 3DES implementation, so you can't even use Reflector to see anything useful. I'm curious why this is needed though. Joe K. -- Joe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net -- "Eugene Mayevski" wrote in message news:O3TjV58dIHA.4880@TK2MSFTNGP02.phx.gbl... > Hello! > You wrote on Mon, 25 Feb 2008 08:27:02 -0800: > > BS> Does anyone know where I can find the source code to the TripleDES > BS> algorithm in C#? I found it in Java and C++, but not C#. I found the > BS> calls to Encrypt() & Decrypt(), but not the source itself. Yes, I > BS> could translate it from C++ or Java; but I don't want to re-invent the > BS> wheel. > > Try BouncyCastle, they must have it in their C# port. > > With best regards, > Eugene Mayevski > http://www.SecureBlackbox.com - the comprehensive component suite for > network security