views:

1038

answers:

5

Hi

can you recommend an open source Delphi crypto library that works with Delphi 2006, Delphi 2009 & Delphi 2010

Algorithms need: DES, MD5, SHA-1

+2  A: 

It doesn't meet all the requirements you set out above but take a look at Turbopower Lockbox.

It used to be a commercial component library but when Turbopower closed they made all their products open source. It definitely worked with C++ builder 5, and supports RSA, MD5, SHA-1, DES, triple DES, Rindjael, and digital signing of messages.

While it doesn't meet all your criteria it might compile with a bit of tweaking, and at least be a starting point.

UPDATE - it looks like Sean B. Durkin has adopted the old code base and is busy working on updating it to work with current versions of Delphi.

Bork Blatt
+6  A: 

Here is a short list of the libraries I have used both pre and post D2009:

  • TPLockbox (I use an unofficial updated version. Although there is a recent official(?) update.)
  • DEC v5.2 (Highly recommend)
  • DCPCrypt (Updated recently)
Ryan J. Mills
I use DCPCrypt.
Warren P
+3  A: 

The latest version of LockBox, compiled for Delphi 2010 is available on the songbeamer website. Nick Hodges has recently been assigned as the community admin for the Turbo Power projects, and I would expect the source forge repositories to be updated soon. It does support all of the encryption methods you mentioned, and is very easy to implement. The codebase on SongBeamer will work across Delphi 2006, 2009 and 2010, as I have used it on all without any issues.

Since the project was at one time commercial, the documentation (available on SourceForge) is outstanding.

skamradt
+1  A: 

ICS includes implementations of DES, MD4, MD5 and SHA-1. http://www.overbyte.be/

Irongut
A: 

Based on your stated requirements then I'd agree DCPCrypt is a good choice. But you might also like to look at the OpenSSL library combined with the import unit by M Ferrante : http://www.disi.unige.it/person/FerranteM/delphiopenssl/
It needs a few straightforward modifications to work with D2009/D2010 - namely replace the PChars with PAnsiChar or PByte - but once you've done that you get industry standard, open source encryption (including public/private key), hashing, SSL etc etc.

shunty