Skip to content

thiagocazzeri/bcrypt-react-native

 
 

Repository files navigation

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

About

A native implementation of bcrypt for react-native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 76.2%
  • Ruby 8.1%
  • Objective-C 7.6%
  • TypeScript 3.0%
  • JavaScript 2.7%
  • Swift 2.2%
  • C 0.2%