imchintan / react-native-crypto-js

CryptoJS is a growing collection of standard and secure cryptographic algorithms implemented in JavaScript using best practices and patterns. They are fast, and they have a consistent and simple interface.
MIT License
40 stars 22 forks source link

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

Open JP6720 opened 4 years ago

JP6720 commented 4 years ago

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)
mechanizzed commented 4 years ago

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

JP6720 commented 4 years ago

Yes it's working now

JP6720 commented 4 years ago

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

seema-spark6 commented 4 years ago

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

denmarc20 commented 4 years ago

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

Where do i change the version?

denmarc20 commented 4 years ago

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

Where do i change the version?

any updates on this?

tiveor commented 4 years ago

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/