react-native-crypto-js icon indicating copy to clipboard operation
react-native-crypto-js copied to clipboard

Why react native crypto js AES decryot and encrypt not working in release mode ios after archive?

Open JP6720 opened this issue 4 years ago • 7 comments

I have used react-native-crypto-js for encrypt and decrypt message for chat app. But after archiv in xcode . Decrypt is not working in mobile app. Gives me empty text or throws error.

CryptoJS.AES.decrypt(itemtwo.message.toString(), "xxxxxxxxxxx").toString(CryptoJS.enc.Utf8)

JP6720 avatar Apr 02 '20 16:04 JP6720

@JP6720 I changed to "crypto-js": "3.1.9-1" and works fine.

mechanizzed avatar May 15 '20 18:05 mechanizzed

Yes it's working now

JP6720 avatar May 15 '20 18:05 JP6720

Hey do you know how to do localization using backend api in react native?

JP6720 avatar May 15 '20 18:05 JP6720

Getting same issue in "crypto-js": "3.1.9-1"

seema-spark6 avatar Jun 23 '20 15:06 seema-spark6

@JP6720 I changed to "crypto-js": "3.1.9-1" and works fine.

Where do i change the version?

denmarc20 avatar Aug 09 '20 05:08 denmarc20

@JP6720 I changed to "crypto-js": "3.1.9-1" and works fine.

Where do i change the version?

any updates on this?

denmarc20 avatar Aug 11 '20 13:08 denmarc20

I've followed those steps to don't use this wrapper instead use crypto-js directly version: 3.1.8 and it works properly for release mode. https://en.tomosware.com/2020/03/react-native-crypto-js-aes-decrypt-problem-and-solution/

tiveor avatar Sep 22 '20 23:09 tiveor