0

I'm encrypting a file "info.plist" using openssl in mac.

openssl enc -aes-256-cbc -salt -in info.plist -out info.data -pass pass:myPass

How can I decrypt this info.data file in my iOS app? I tried to use CryptoSwift pod but I can't figure out to make it work.

Soheil
  • 5,054
  • 3
  • 24
  • 43
  • It is best to avoid using CryptoSwift, amoung other things it is 500 to 1000 times slower than Common Crypto based implementations. Apple's Common Crypto is FIPS certified and as such has been well vetted, using CryptoSwift is taking a chance on correctness and security. – zaph Apr 26 '16 at 20:01

1 Answers1

1

See the first answer for this question:Issue using CCCrypt (CommonCrypt) in Swift

It has an example for AES256 Decryption

Community
  • 1
  • 1
mkhoshpour
  • 845
  • 1
  • 10
  • 22