iphone25 iphone25 - 23 days ago 8
Swift Question

common crypto in swift 2.3 and Xcode8.1

I am trying to implement by using AES Encryption in CryptoSwift. Somebody suggest cryptoswift 500 to 1000 times slower then commonCrypto. Anyone helpme to integrate commonCrypto in my project. Step by step explain?

I am using in XCode8.1 and swift 2.3

Thanks in Advance

Answer

If you are looking for a complete secure solution that integrate rather easily use RNCryptor.

If you are looking for a partial solution, that is just AES encryption without password derivation or authentication look at this example implementation on the SO Documentation section for Swift 2.3 and 3.0.