Reputation: 1720
I am looking for existing implementations of different types of DES in C/C++/C##. My running platform is Windows XP/Vista/7.
I am trying to write a C# program which will encrypt and decrypt using the DES algorithm. I need some implementations with which i can verify my code output to see if i did the things in right order. For the implementations the code along with the executable will be good however not a must.
Upvotes: 1
Views: 11265
Reputation: 1720
Thanks for the input.. I found these links where in I could calculate the DES values for giving input.
Upvotes: 0
Reputation: 8405
Nearly all open source C/C++ crypto libraries implement DES. You could for instance use OpenSSL, PolarSSL, LibTomCrypt, Crypto++, or any other library of your choosing for testing/experimentation.
In C# there seem to be fewer options, simply because the default .NET crypto libraries somewhat inhibit the desire for anyone else to compete in this space, but BouncyCastle's C# code (http://www.bouncycastle.org/csharp/index.html) does contain an implementation (in src/crypto/engines/DesEngine.cs).
Upvotes: 2
Reputation: 7961
This might be what you are looking for: http://msdn.microsoft.com/en-us/library/system.security.cryptography.des.aspx
Upvotes: 1