Search code examples
reactjsreact-nativeencryptionaesexpo

How to Encrypt data in React native (Using Expo)


I'm trying to simply encrypt a message using a given key and iV. I've tried several libraries to achieve this but Expo isn't compatible with any of them. I couldn't find any encryption libraries for Expo (That support AES). I guess my question is : How do I encrypt data in React Native running Expo

Ps : I am not interested in expo-crypto


Solution

  • Another possibility (what I did) is to use the CryptoES library.

    https://www.npmjs.com/package/crypto-es

    After long search I found it, it is a continued development of the 3.1 version of the CryptoJS library and can be used with Expo.