C/Python 中的国际数据加密算法(IDEA)
我希望在我的一个程序中实现 IDEA 算法以用于加密目的。我一开始想过实施它,但很快就放弃了这个想法,因为它对我来说太复杂而难以实施。我在网上搜索了相同的库实现,并坚持使用 mcrypt。但idea是一个非免费的mcrypt包,正如它所说的这里。有什么办法可以将 IDEA 添加到 mcrypt 中吗?或者是否有任何库在 C/Python 中提供这种加密功能?
I wish to implement IDEA algorithm in one of my programs for encryption purposes. I thought of implementing it at first but quickly gave up the idea as it seemed too complex for me to implement. I searched over the net for any library implementation of the same and stuck upon mcrypt. But idea is a non-free package of mcrypt as it says here. Is there any way I can add IDEA to mcrypt? Or is there any library which provides this encryption functionality in C/Python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
2015 年更新:
IDEA 的最后一项专利显然已于 2012 年到期。然而,作为 64 位块大小密码,其设计已经相当过时,因此不应考虑将其用于新的系统设计。
IDEA 的“非自由”描述是因为该密码在欧洲、美国和日本受到专利保护。
您仍然可以下载并编译 mcrypt IDEA 模块,或者在启用 IDEA 密码的情况下编译 OpenSSL。您有责任确保自己没有侵犯专利。专利所有者 Ascom Systec Ltd. 已针对某些应用提供免版税的服务:
2015 Update:
The last of the IDEA patents apparently expired in 2012. However, as a 64-bit block size cipher its design is quite outdated, so it should not be considered for new system designs.
The "non-free" description of IDEA is because the cipher is patent-encumbered in Europe, the US and Japan.
You can still download and compile the mcrypt IDEA module, or compile OpenSSL with the IDEA cipher enabled. It is up to you to ensure that you are not infringing the patent(s). The patent owners, Ascom Systec Ltd., have made it available royalty-free for certain applications:
您可以从网站获取创意模块,然后放弃创意。 c 和相关文件,您应该能够重建 libmcrypt (如果您使用它,还可以重建 mcrypt)。您还可以使用 GPG 版本,或者自己构建一个单独的库,但都没有那么简单。
You can get hold of the idea module from a web site, drop the idea.c and related files in and you should be able to rebuild libmcrypt (and mcrypt if you use it). You can also use the GPG version, or build a separate library yourself, but neither is as simple.