简体   繁体   English

Swift中的AES解密

[英]AES Decryption in Swift

I'm encrypting a file "info.plist" using openssl in mac. 我在Mac中使用openssl加密文件“ info.plist”。

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? 如何在我的iOS应用中解密此info.data文件? I tried to use CryptoSwift pod but I can't figure out to make it work. 我尝试使用CryptoSwift吊舱,但我想不通使其工作。

See the first answer for this question: Issue using CCCrypt (CommonCrypt) in Swift 请参阅此问题的第一个答案: 在Swift中使用CCCrypt(CommonCrypt)的问题

It has an example for AES256 Decryption 它有一个AES256解密的例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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