bcrypt-react-native
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

bcrypt-react-native

Native implementation of bcrypt for react-native.

Uses BCrypt for iOS.

Installation

npm install bcrypt-react-native

or

yarn add bcrypt-react-native
cd ios && pod install

Usage

import BcryptReactNative from 'bcrypt-react-native';

// ...
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

Package Sidebar

Install

npm i bcrypt-react-native

Weekly Downloads

341

Version

1.1.1

License

MIT

Unpacked Size

57.4 kB

Total Files

22

Last publish

Collaborators

  • andresh