2.0.1 • Published 11 months ago

bcrypt-react-native-0.72.x v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

bcrypt-react-native-0.72.x

Native implementation of bcrypt for react-native.

Uses BCrypt for iOS.

Installation

npm install bcrypt-react-native-0.72.x

or

yarn add bcrypt-react-native-0.72.x
cd ios && pod install

Usage

import BcryptReactNative from 'bcrypt-react-native-0.72.x';

// ...
try{

const salt = await BcryptReactNative.getSalt(10);
const hash = await BcryptReactNative.hash(salt, 'password');
const isSame = await BcryptReactNative.compareSync('password', hash);
} catch(e) {
  console.log({ e })
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

2.0.1

11 months ago