简体   繁体   English

跨平台加密容器库

[英]Cross-platform encryption container library

I have a need for a cross-platform (hopefully C) library that can create and mount encrypted filesystem containers. 我需要一个可以创建和挂载加密文件系统容器的跨平台(希望是C)库。 The same functionality of TrueCrypt but as a library so I would not have to externally include and invoke the Truecrypt executables. 与TrueCrypt相同的功能,但作为一个库,所以我不必在外部包含和调用Truecrypt可执行文件。

Any alternate suggestions or solutions are also very welcome. 任何其他建议或解决方案也非常受欢迎。

Thanks! 谢谢!

Try openSSL 试试openSSL

libssl supports a lot of popular cryptography algorithms. libssl支持许多流行的加密算法。 It also has wrapper methods for some (at least blowfish) which will simulate a stream cipher on a block cipher such as blowfish. 它还有一些(至少是河豚)的包装方法,它将模拟像河豚这样的分组密码上的流密码。

SYMMETRIC CIPHERS 对称密码

blowfish(3), cast(3), des(3), idea(3), rc2(3), rc4(3), rc5(3)

PUBLIC KEY CRYPTOGRAPHY AND KEY AGREEMENT 公共密钥密码和密钥协议

dsa(3), dh(3), rsa(3)

CERTIFICATES 证书

x509(3), x509v3(3)

AUTHENTICATION CODES, HASH FUNCTIONS 认证码,哈希函数

hmac(3), md2(3), md4(3), md5(3), mdc2(3), ripemd(3), sha(3)

http://openssl.linux-mirror.org/docs/crypto/crypto.html http://openssl.linux-mirror.org/docs/crypto/crypto.html

I wrote a simple cross-platform C++ library (work name RC5Simple) for encrypting/decrypting files and byte arrays by RC5-32/12/16. 我写了一个简单的跨平台C ++库(工作名称RC5Simple),用于通过RC5-32 / 12/16加密/解密文件和字节数组。 May be it helpful to you. 可能对你有所帮助。

Source and sample: 来源和样本:

http://webhamster.ru/db/data/articles/157/rc5simple_1_23.zip http://webhamster.ru/db/data/articles/157/rc5simple_1_23.zip

Tested on Linux-32, Linux-64, Windows-32, Windows-64, MacOSX, FreeBSD. 在Linux-32,Linux-64,Windows-32,Windows-64,MacOSX,FreeBSD上测试过。

Official page: http://webhamster.ru/site/page/index/articles/projectcode/157 (rus). 官方网页: http ://webhamster.ru/site/page/index/articles/projectcode/157(rus)。

You may easily include source files to your project. 您可以轻松地将源文件包含到项目中。 Licenses: GPL3 and BSD. 许可证:GPL3和BSD。

回答有点迟,但仅作为参考:我们的SolFS正是您所描述的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM