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

查看:13
本文介绍了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.

TurboPower LockBox 的 Delphi 2010 版本已发布到 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 密钥长度2030,这只是算力提升的一个函数,而不是算法的弱点.

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 开始维护它之前,我正在查看 LockBox (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天全站免登陆