How to Encrypt data in React native (Using Expo)

后端 未结 4 1443
梦如初夏
梦如初夏 2021-01-22 19:53

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

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-22 20:51

    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.

提交回复
热议问题