tags:

views:

627

answers:

4

Does anyone have code snippet for Triple DES algorithm in C ?

Thanks

+1  A: 

Check out the Crypto++ library, they implement tons of algorithms including DES.

Goose Bumper
thanks for the link but I am looking for C not C++
Ved
A: 

libtomcrypt is a comprehensive crypto lib written in C, with a 3DES implementation.

Eli Bendersky
A: 

Here's a simple implementation in C & C++. Possibly simpler to use than libtomcrypt.

http://www.codeguru.com/cpp/misc/misc/cryptoapi/article.php/c8195

richb
I would be wary of taking crypto algorithms from sample snippet pages like codeguru. For playing around it's find, but for securing your business use something more credible
Eli Bendersky
+2  A: 

OpenSSL is written in C and provides a 3DES algorithm. It may not be as simple as some of the other suggestions, but it may be worth checking out.

jschmier