0.4.3 • Published 2 years ago

@react-native-module/pbkdf2 v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago