Skip to content
forked from benadida/node-hkdf

the HKDF key-derivation function for node.js

Notifications You must be signed in to change notification settings

zaach/node-hkdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-hkdf

The HMAC-based Key Derivation Function for node.js.

spec: https://tools.ietf.org/html/rfc5869

install

npm install hkdf

use

const HKDF = require('hkdf');

var hkdf = new HKDF('sha256', 'salt123', 'initialKeyingMaterial');
hkdf.derive('info', 42, function(key) {
  // key is a Buffer, that can be serialized however one desires
  console.log(key.toString('hex'));
});

license

Apache License 2.0

About

the HKDF key-derivation function for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.4%
  • Shell 8.6%