简体   繁体   中英

AES Decryption in Swift

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.

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

It has an example for AES256 Decryption

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM