您会考虑在 Linux 上使用哪个库来实现 DEA(数据加密算法)?
我的项目需要一个 3DES 加密/解密库。 你知道在 Linux 上运行的实现吗?
Linux 是目标平台,但我基本上是在 Windows 上编译/调试的。因此,如果它可以在 Windows 上运行,而不是强制的,我们会非常感激。
I need a 3DES encrypt/decrypt library for my project.
Do you know an implementation working on linux ?
Linux is the target platform, but I essantially compile/debug on Windows. Therefore it could be really appreciated if it could work on Windows, while not mandatory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
OpenSSL 是一个非常有信誉、经过充分测试的开源安全库。它适用于 *nix 和 Windows。你可以在这里找到它
进行编辑,现在找不到简单的例子。不过 API 文档 相当不错。
有一个针对 Windows 的预编译版本可以从 openssl 站点下载。大多数包管理器都会有一个适用于 Linux 机器的 OpenSSL 预打包版本,因此您不必编译自己的版本。
OpenSSL is a very reputable, well tested open source security library. It's available for *nix and Windows. You can find it here
Edit, can't find a simple example right now. The API documentation is pretty good though.
There's a pre-compiled version for windows available for download from the openssl site. Most package managers will have a pre-packaged version of OpenSSL for Linux boxes, so you shouldn't have to compile your own version.
寻找埃里克·杨(Eric Young)的“libdes”。
该库还可以在 Windows 和 Linux 上使用。
Look for Eric Young's "libdes".
This library can be also used on Windows as well as on Linux.
我以前用过 botan ,我真的很喜欢它。它不仅实现了 3DES,还实现了许多其他算法。它是 C++,所以他们的 API 是面向对象的(我喜欢这个功能,而其他人可能不同意)。它支持很多系统(Windows、Linux、FreeBSD等)、很多处理器(x86、x86-64、IA-64、PowerPC等)和编译器。看来有着非常不错的表现。最后它的许可证允许商业开发。
至少值得一看;-)
I have used botan before and I really like it. It has an implementation of not only 3DES but a lot of others algorithm. It is C++ so their API is Object Oriented (I like this feature while other might disagree). It supports a lot of systems (Windows, Linux, FreeBSD, etc), a lot of processors (x86, x86-64, IA-64, PowerPC and so on) and compilers. It seems to have a very good performance. Finally its license allows commercial developments.
At least it's Worth to have a look ;-)
你可以为 Windows 编译 libcrypto (openssl),但我不推荐它:
http://www.pixelbeat.org/programming/lib_crypto.html
可能使用了 NSS火狐浏览器有用吗?
http://www.mozilla.org/projects/security/pki/nss/< /a>
虽然我可能会尝试一些简单的事情,例如:
http://www.lysator.liu.se/~nisse/nettle/荨麻.html
you can compile libcrypto (openssl) for windows but I wouldn't recommend it:
http://www.pixelbeat.org/programming/lib_crypto.html
Maybe NSS used by firefox would be useful?
http://www.mozilla.org/projects/security/pki/nss/
Though I'd probably try something simple like:
http://www.lysator.liu.se/~nisse/nettle/nettle.html