react-native-simple-bcrypt
v0.3.0
Published
Simple/Fast/Native Bcrypt bindings for react native
Downloads
93
Readme
react-native-simple-bcrypt
Simple/Fast/Native Bcrypt bindings for react native
Installation
npm install react-native-simple-bcrypt
or using yarn
yarn add react-native-simple-bcrypt
install pods
cd ios && pod install
if in expo managed projects do a prebuild
expo prebuild
Usage
import { compare, hash } from "react-native-simple-bcrypt";
// ...
compare(plainText, hashed).then((isMatched) => {
console.log(isMatched);
});
hash(plainTextToBeHashed, rounds).then((res) => {
console.log(res);
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library