问题描述
我在寻找一个使用Objective-C代码的加密库。有一个C ++库太大了,我的需要。它是20 mb编译时。我认为一个C库将是完美的使用Objective-C。
这是我对这个库的需求:
AES(Rijndael)
CFB模式
SHA1
SHA256
HMAC-SHA1
HMAC-SHA256
PBKDF2
I'm looking for a crypto library to use with Objective-C code. There is a C++ library which is too big for my needs. It's 20 mb when compiled. I think a C library would be perfect to use with Objective-C.Here is my needs for this library:AES (Rijndael)CFB ModeSHA1SHA256HMAC-SHA1HMAC-SHA256PBKDF2
您的帮助将非常感激。
推荐答案
p>我在我的Objective-C项目中链接到加密。如果你使用的是OS X,这已经安装在每个用户的机器上。还有一个名为的可可框架,它为openssl提供了Objective-C包装器,这使得C-基于openssl的库更容易使用。
I link against OpenSSL for cryptography in my Objective-C projects. If you're using OS X, this is already installed on every user's machine. There's also a cocoa framework called SSCrypto which provides Objective-C wrappers for openssl, which makes the C-based openssl library a little easier to use.
这篇关于Crypto库适用于Objective-C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!