Delphi 2010 Cryptography libraries [closed]

心不动则不痛 提交于 2019-12-30 04:47:08

问题


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

Algorithms need: DES, MD5, SHA-1


回答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)



回答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.




回答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.




回答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.




回答5:


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




回答6:


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.




回答7:


Algorithms need: DES, MD5, SHA-1

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

  • http://www.Spring4D.org

  • https://bitbucket.org/sglienke/spring4d/src/17baafd8a8234395aa9ea553037ca2c7bc6b3bc2/Source/Extensions/Cryptography/?at=master



来源:https://stackoverflow.com/questions/2020216/delphi-2010-cryptography-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!