开发者

Objective-C library recommendation for AES-256 in CTR mode [closed]

开发者 https://www.devze.com 2022-12-25 08:09 出处:网络
Closed. This question does not meet Stack Overflow gu开发者_JAVA技巧idelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow gu开发者_JAVA技巧idelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed last month.

Improve this question

I'm looking for recommendations on an Objective-C library for AES-256 encryption in CTR mode. I have a database full of data encrypted with another library using CTR and seems the included CCCrypt only supports ECB or CBC with PKCS#7.

Any idea on the best portable library I should use? I'm not looking to port the original implementation as I don't have the required knowledge in cryptography and hence, that's-a-bad-idea (tm).

Thanks!


You should be able to implement this using OpenSSL. It is not Objective C, but rather "plain" C code, but since the built-in encryption algorithms in the iPhone also rely on plain C, this should hopefully not make that big a difference.

There is a tutorial on The Rare AiR on how you can compile the OpenSSL library for iPhone.

Hope this helps, Claus

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号