Delphi 2010 Cryptography libraries [closed]
Asked Answered
N

7

7

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

Algorithms need: DES, MD5, SHA-1

Nisse answered 7/1, 2010 at 12:27 Comment(1)
There are some good libraries that aren't open source, if that is not a real requirement. They come with source, but can't be distributed.Convalescence
O
10

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)
Oxytocin answered 7/1, 2010 at 16:39 Comment(1)
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?Goodden
R
4

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.

Richman answered 7/1, 2010 at 17:49 Comment(0)
T
2

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.

Thiouracil answered 7/1, 2010 at 12:38 Comment(0)
M
2

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.

Moradabad answered 10/12, 2012 at 1:4 Comment(0)
E
1

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

Elodiaelodie answered 8/1, 2010 at 21:33 Comment(0)
P
0

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.

Precambrian answered 10/1, 2010 at 9:31 Comment(0)
M
0

Algorithms need: DES, MD5, SHA-1

While that is not the primary goal of that library you can use those classes:

Microdot answered 11/1, 2016 at 16:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.