Objective-C Encryption libraries on iPhone?

4.2k Views Asked by At

Are there any ready-to-use encryption libraries for the iPhone? 3DES, AES/Rijndael, whatever. I need to encrypt and decrypt strings. My understanding of Objective-C is that you can use C code inside of Objective-C methods/functions/whatever they're called.

4

There are 4 best solutions below

0
On

That is correct, you can use any C code you want in Objective - C, since it is a proper superset of C.

0
On

don't forget you could always use c++ source code in your obj-c project and there are many c++ encryption libraries like : LibTomCrypt

add c++ code to your project and simply call functions;

0
On
1
On

iPhone comes out of the box with the CommonCrypto library. It has various support for encryption. See the Security Coding How-to from Apple.