开发者

DES implementation in C/C++/C#

I am looking for existing implementations of different types of DES in C/C++/C##. My running pla开发者_StackOverflow中文版tform 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.


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


This might be what you are looking for: http://msdn.microsoft.com/en-us/library/system.security.cryptography.des.aspx


Thanks for the input.. I found these links where in I could calculate the DES values for giving input.

  1. http://www.unsw.adfa.edu.au/~lpb/src/DEScalc/DEScalc.html
  2. http://www.riscure.com/tech-corner/online-crypto-tools/des.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜