0.4.3 • Published 3 years ago

@react-native-module/pbkdf2 v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@react-native-module/pbkdf2

PBKDF2 implementation for React Native

  • 🔨 Android and iOS native support
  • 🎨 Supports SHA-1, SHA-256, SHA-512

Installation

This module has peerDependency "react-native"

npm install ---save @react-native-module/pbkdf2
yarn add @react-native-module/pbkdf2

Usage

import { pbkdf2 } from '@react-native-module/pbkdf2';

const password = 'cGFzc3dvcmQ=';
const salt = 'c2FsdA==';
const iterations = 1000;
const keylen = 16;
const digest = 'sha256';
pbkdf2(password, salt, iterations, keylen, digest, (err, derivedKey) => {
  if (err) {
    console.warn(err.message);
  } else {
    console.log(derivedKey); // derivedKey is Buffer
  }
});

License

MIT

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago