A native implementation of pqc crypto in C++ for React Native
A native implementation of Base64 in C++ for React Native.
4x faster than base64-js on an iPhone 11 Pro.
Try the benchmarks under example.
``sh`
npm install react-native-pqc-crypto
`js
import { btoa, atob } from 'react-native-pqc-crypto';
const base64 = btoa('foo');
const decoded = atob(base64);
`
Compatible with base64-js.
Takes a base64 string and returns length of byte array
Takes a base64 string and returns a byte array
Takes a byte array and returns a base64 string
Encodes a string in base64
Decodes a base64 encoded string
Adds btoa and atob functions to global`.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT by Takuya Matsuyama