views:

81

answers:

2

Other than OpenPGP, are there any other libraries to encrypt text?

+5  A: 

You could use OpenSSL, which is built into both Mac OS X and iOS. You just need to add Security.framework, then you can #include <ssl.h>.

Ben Alpert
+2  A: 

For simple encryption using AES, TripleDES, you can just use built-in CommonCrypto library,

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/CCCryptor.3cc.html#//apple_ref/doc/man/3cc/CCCryptor

ZZ Coder