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 / February 2008

Tip: Looking for answers? Try searching our database.

TripleDES C# Source Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BillG_SD - 25 Feb 2008 16:27 GMT
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,
Eugene Mayevski - 25 Feb 2008 16:49 GMT
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
Joe Kaplan - 25 Feb 2008 17:06 GMT
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.
Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

> Hello!
> You wrote  on Mon, 25 Feb 2008 08:27:02 -0800:
[quoted text clipped - 11 lines]
> http://www.SecureBlackbox.com - the comprehensive component suite for
> network security
Jesse Houwing - 25 Feb 2008 19:39 GMT
Hello Joe,

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

I guess it wouldn't be needed, but the CryptoAPI is a well known API which
is certified by a number of government organisations. It was probably easier
to re-use it as it's guaranteed to be available on any Windows PC.

--
Jesse Houwing
jesse.houwing at sogeti.nl
Joe Kaplan - 25 Feb 2008 20:15 GMT
If you just want to be sure you are using the CryptoAPI for 3DES, then using
the TripleDESCryptoServiceProvider class should take care of you.

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

> Hello Joe,
>
[quoted text clipped - 11 lines]
> Jesse Houwing
> jesse.houwing at sogeti.nl

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.