Take more time to decrypt #962
Replies: 17 comments
-
Upgrade to Swift 3 and use Release build with "whole module optimization" enabled. According to my latest tests it should take ~4s to process 10MB when run on iPhone6 hardware. |
Beta Was this translation helpful? Give feedback.
-
i am currently using which version should i use ? |
Beta Was this translation helpful? Give feedback.
-
0.6.5 or above |
Beta Was this translation helpful? Give feedback.
-
is there a way to do it without updating it into swift 3.0 ? |
Beta Was this translation helpful? Give feedback.
-
For the best performance, you'll need the latest release, Swift 3 compatible. I have no plans to maintain Swift 2.2. |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
share you sample project please, to verify |
Beta Was this translation helpful? Give feedback.
-
i am using
ill share the sample project with you but for the time being this is my code snippet |
Beta Was this translation helpful? Give feedback.
-
no way. I took 7.5 s. on my iPhone 6. You must build it in "debug" mode. |
Beta Was this translation helpful? Give feedback.
-
i have created a sample application Here |
Beta Was this translation helpful? Give feedback.
-
Did you able to run the project that i have share with you ? |
Beta Was this translation helpful? Give feedback.
-
yes, here the results iPhone6
iPad Mini (iPhone 4s)
|
Beta Was this translation helpful? Give feedback.
-
So what i am doing wrong there ? because i'am getting following results
|
Beta Was this translation helpful? Give feedback.
-
I'm pretty sure you're testing Debug builds, not Release builds. |
Beta Was this translation helpful? Give feedback.
-
Can you tell me how to change it ? |
Beta Was this translation helpful? Give feedback.
-
sure. Like this: Also... you may want update CryptoSwift target in Pods (as seen in screenshot) to enable "Whole Module Optimization" |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, changing it to Release and enable Whole Module Optimization cut the decryption time in to this
Thank you very much again for your support and this awesome library |
Beta Was this translation helpful? Give feedback.
-
Hi i am currently using this library for file decryption and its work fine but the issue i am facing was its take more time to decrypt. my file size around 10 MB and it take around 5mins to decrypt to work. this is my decryption code
let decryptedPart = try! AES(key: keyArray, iv: ivDecodeData, blockMode: .CTR, padding: NoPadding()).decrypt(encrptedPart)
i am working in swift 2.2 and can you give me a solution for this issue ?
Beta Was this translation helpful? Give feedback.
All reactions