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
Post a Comment