Simple/Fast/Native Bcrypt bindings for react native
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
import { compare, hash } from "react-native-simple-bcrypt";
// ...
compare(plainText, hashed).then((isMatched) => {
console.log(isMatched);
});
hash(plainTextToBeHashed, rounds).then((res) => {
console.log(res);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library