Delphi 2010 Cryptography libraries

11,039

Solution 1

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)

Solution 2

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.

Solution 3

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.

Solution 4

This thread is on the old side, but I'll go ahead and put my vote in for the Windows Cryptography API. It does a lot as long as you can figure out how to do it, but there's numerous examples out there. I've pulled MD5 and SHA-1 hashes out of it (along with SHA-256 and SHA-512) before and notice that it will do DES encryption as well (more examples).

It's already present in most of the Windows today, so it shouldn't be any different than any other API calls, figuratively. But I thought for a thread such as this it might be worth posting it as an option.

Solution 5

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

Share:
11,039
Charles Faiga
Author by

Charles Faiga

Software developer working with: Delphi, C++, C, MySql and Embedded Systems

Updated on June 24, 2022

Comments

  • Charles Faiga
    Charles Faiga almost 2 years

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

    Algorithms need: DES, MD5, SHA-1

  • bob_saginowski
    bob_saginowski over 9 years
    I didn't find rc2 cipher in TPLockBox; When I tried DEC v5.2 I got two errors: E2250 There is no overloaded version of 'AddModuleUnloadProc'/ 'RemoveModuleUnloadProc' that can be called with these arguments. Where I can find implementation of rc2?