react-native-fast-pbkdf2
v0.3.1
Published
PBKDF2 implementation
Downloads
5,830
Readme
react-native-fast-pbkdf2
PBKDF2 implementation for React Native
- 🔨 Android and iOS native support
- 🎨 Supports SHA-1, SHA-256, SHA-512
Installation
npm install react-native-fast-pbkdf2
Usage
import Pbkdf2 from "react-native-fast-pbkdf2";
const password = 'cGFzc3dvcmQ=';
const salt = 'c2FsdA==';
const numberIterations = 1000;
const keyLength = 16;
let res = await Pbkdf2.derive(password, salt, numberIterations, keyLength, 'sha-256');
// res is Base64 encoded key
License
MIT