@react-native-cryptocurrencies/react-native-rncryptor

React Native RNCryptor

Usage no npm install needed!

<script type="module">
  import reactNativeCryptocurrenciesReactNativeRncryptor from 'https://cdn.skypack.dev/@react-native-cryptocurrencies/react-native-rncryptor';
</script>

README

React Native RNCryptor

It's an easy-to-use library for encrypting data with AES 256 in React Native. RNCryptor developed popular and easy-to-use AES libs, implementations are available in C++, C#, Java, PHP, Python, Javascript, and Ruby.

Getting started

$ npm install react-native-rncryptor --save

$ react-native link react-native-rncryptor

Usage

import RNCryptor from 'react-native-rncryptor';

RNCryptor.encrypt('a text', 'password').then((encryptedbase64)=>{
  console.log(encryptedbase64)
}).catch((error)=>{
  console.log(error)
})

RNCryptor.decrypt('encrypted base64', 'password').then((plaintext)=>{
  console.log(plaintext)
}).catch((error)=>{
  console.log(error)
})

License

MIT