AES Decrypt not working in iOS 12 or lower #949
Replies: 8 comments
-
Can you please check these for me:
|
Beta Was this translation helpful? Give feedback.
-
on top of that, can you please test with CryptoSwift 1.3.8? |
Beta Was this translation helpful? Give feedback.
-
I already tested using CryptoSwift 1.3.8 and still not working. |
Beta Was this translation helpful? Give feedback.
-
Can you please share a sample Xcode project (with values where you see the issue) I could run on my end and see what's going on? |
Beta Was this translation helpful? Give feedback.
-
Sure, this is a sample app. All the methods that I'm using in my real project are in the AppDelegate. In this project I'm getting the same results. I hope you can help me with this please. And thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @krzyzanowskim did you got some time to check my test project? |
Beta Was this translation helpful? Give feedback.
-
@DanielGZ95 did you find any solution regarding this? |
Beta Was this translation helpful? Give feedback.
-
@imrankst1221 I stop using this library and I used the native way provided by swift. I based my implementation in this resource https://developer.apple.com/documentation/cryptokit/performing_common_cryptographic_operations |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I'm trying to decypt data encrypted using AES-256. The decrypt process works fine on devices with iOS 13 and above. Only the devices with iOS 12 are returning invalid data when I call the decrypt method. The string that I'm trying to decrypt is generated inside a web service.
The strange part is that when I encrypt the data inside of my project, the decrypt process works good. Is there a workaround or a solution that I can apply to my project? I need to support iOS 12.
Reproduce
Steps to reproduce:
Xcode: 12.4
CryptoSwift: 1.3.2
Beta Was this translation helpful? Give feedback.
All reactions