INACTIVE - the HKDF key-derivation function for node.js
Перейти к файлу
Zachary Carter e3a66db734 0.0.2 2013-11-21 14:10:58 -08:00
lib avoid String.fromCharCode, which breaks out of ascii range 2013-11-21 14:10:32 -08:00
scripts beginning of package 2011-12-29 13:29:08 -08:00
test fix implementation, with additional tests 2013-06-19 20:26:40 -07:00
.gitignore beginning of package 2011-12-29 13:29:08 -08:00
README.md Update README.md 2013-06-23 17:49:58 -06:00
index.js beginning of package 2011-12-29 13:29:08 -08:00
package.json 0.0.2 2013-11-21 14:10:58 -08:00

README.md

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