cryptojs - React-Native Crypto-js Cannot Decrypt String on iPhone 7 Plus Simulator -


in react-native ios project, trying use crypto-js decrypt string below code:

import * cryptojs "crypto-js" let key = "samplekey" let key = "sampleiv"  let decryptedstring = cryptojs.aes.decrypt(string, cryptojs.enc.base64.parse(key), { iv: cryptojs.enc.base64.parse(iv)}).tostring(cryptojs.enc.utf8)     

this decryption method works on ios simulator except iphone 7 plus (ios 10.3).

see simulator error image here

any idea on cause?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -