Delphi免费加密库 [英] Free Encryption library for Delphi

查看:159
本文介绍了Delphi免费加密库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个实现RSA和AES(Rijndael)的Delphi 2010的免费和最新的加密库。

I'm looking for a free and up to date encryption library for Delphi 2010 that implements RSA and AES (Rijndael).

我想要一个免费的图书馆,因为我计划编写和发布一些使用它的示例代码。

I want a free library because I plan to write and publish some sample code that will use it.

一个Delphi 2010版本的TurboPower LockBox已经发布到 SongBeamer 网站,实现了这两个,但我担心它有点老了。例如,小型RSA密钥大小,并且没有新的安全功能多年。

A Delphi 2010 version of TurboPower LockBox has been posted to the SongBeamer site, that implements both of these, but I'm concerned that it's getting a little old. For example, small RSA key sizes and no new security features for many years.

更新:
LockBox是过时或缺少重要功能不正确?它是否仍然适用于生产开发? (特别是RSA密钥大小)

Update: Is the perception that LockBox is out of date or lacks important features incorrect? Is it still relevant for production development? (Particularly the RSA key sizes)

推荐答案

RSA算法不一定过时,但密钥大小很重要。它仍然在各地定期使用。如果需要超出安全性,则应使用 3072位的RSA密钥长度这只是计算能力改进的一个功能,而不是算法的弱点。

The RSA algorithm is not necessarily out of date, but the key size is important. It is still used regularly all over the place. An RSA key length of 3072 bits should be used if security is required beyond 2030. This is just a function of the improvements in computing power and not a weakness in the algorithm.

我在 SongBeamer 开始维护它(Delphi 2007)我发现RSA不稳定 - 只是崩溃或不时产生错误的结果。从那以后可能已经被修复了。如果要使用它,请确保它支持所需的密钥长度,然后使用已知的输入和输出创建一些自动测试。确保它运行稳定。如果是这样,那么请一定使用它。

I was looking at the LockBox prior to SongBeamer starting to maintain it (Delphi 2007) I found the RSA unstable - just crashing or producing wrong results from time to time. It may have been fixed since then though. If you are going to use it, make sure it supports the key lengths you need, and then create some automated tests with known inputs and outputs. Make sure it runs stable. If it does, then use it by all means.

您还可以使用Microsoft Crypto API来进行RSA加密。我为 Delphi 2007 编写了一个包装器,但没有为Unicode更新它(我知道,羞于我)。有人可能能够更新它,以方便使用Unicode。

You can also use the Microsoft Crypto API to do your RSA encryption. I wrote a wrapper for Delphi 2007, but have not updated it for Unicode (I know, shame on me). Someone else might be able to update it to work with Unicode easily.

另一个选择是通过COM互操作性或某些东西来使用.NET Framework加密功能。

Another option would be to use the .NET Framework cryptography functions via COM interoperability or something.

这篇关于Delphi免费加密库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆