适用于 Objective-C 的加密库 [英] Crypto library suitable for Objective-C
问题描述
我正在寻找与 Objective-C 代码一起使用的加密库.有一个 C++ 库对我的需要来说太大了.编译时为 20 mb.我认为 C 库非常适合与 Objective-C 一起使用.这是我对这个库的需求:AES (Rijndael)CFB模式SHA1SHA256HMAC-SHA1HMAC-SHA256PBKDF2
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 Mode SHA1 SHA256 HMAC-SHA1 HMAC-SHA256 PBKDF2
我们将不胜感激.
推荐答案
我在我的目标中链接到 OpenSSL 进行加密-C 项目.如果您使用的是 OS X,则它已经安装在每个用户的机器上.还有一个名为 SSCrypto 的 cocoa 框架,它为 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.
这篇关于适用于 Objective-C 的加密库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!