Delphi 2010 密码学库

发布于 2024-08-17 18:55:53 字数 1539 浏览 9 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

梦冥 2024-08-24 18:55:53

以下是我在 D2009 之前和之后使用过的库的简短列表:

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)
雪花飘飘的天空 2024-08-24 18:55:53

为 Delphi 2010 编译的 LockBox 最新版本可在 songbeamer 网站上获取。 Nick Hodges 最近被指定为 Turbo Power 的社区管理员项目,我希望源锻造存储库能够很快更新。它确实支持您提到的所有加密方法,并且非常容易实现。 SongBeamer 上的代码库可以在 Delphi 2006、2009 和 2010 上运行,因为我在所有版本上都使用过它,没有任何问题。

由于该项目曾经是商业项目,因此文档(可在 SourceForge 上获取)非常出色。

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.

记忆里有你的影子 2024-08-24 18:55:53

它不满足您上面列出的所有要求,但请查看 Turbopower Lockbox

它曾经是一个商业组件库,但当 Turbopower 关闭时,他们将所有产品开源。它绝对可以与 C++ builder 5 配合使用,并支持 RSA、MD5、SHA-1、DES、三重 DES、Rindjael 和消息数字签名。

虽然它不符合您的所有标准,但它可能会通过一些调整进行编译,并且至少是一个起点。

更新 - 看起来 Sean B. Durkin 已经采用了旧的代码库,并且正忙于更新它以与当前版本的 Delphi 一起使用。

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.

仙气飘飘 2024-08-24 18:55:53

该线程是旧的,但我会继续投票 Windows 加密 API。只要您能弄清楚如何做,它就可以做很多事情,但是有很多例子。我已经从中提取了 MD5 和 SHA-1 哈希值(以及 SHA-256)和 SHA-512) 之前,请注意它会执行 DES 加密更多示例)。

它已经存在于当今的大多数 Windows 中,因此从形象上讲,它应该与任何其他 API 调用没有任何不同。但我认为对于这样的线程,可能值得将其作为一个选项发布。

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.

温暖的光 2024-08-24 18:55:53

ICS 包括 DES、MD4、MD5 和 SHA-1 的实现。
http://www.overbyte.be/

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

呆萌少年 2024-08-24 18:55:53

根据您提出的要求,我同意 DCPCrypt 是一个不错的选择。
但您可能还想查看 M Ferrante 结合导入单元的 OpenSSL 库: http://www.disi.unige.it/person/FerranteM/delphiopenssl/
它需要一些简单的修改才能与 D2009/D2010 一起使用 - 即用 PAnsiChar 或 PByte 替换 PChars - 但一旦完成,您将获得行业标准、开源加密(包括公钥/私钥)、散列、SSL 等.

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.

小兔几 2024-08-24 18:55:53

需要的算法:DES、MD5、SHA-1

虽然这不是该库的主要目标,但您可以使用这些类:

Algorithms need: DES, MD5, SHA-1

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文