Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hkdfpublic

    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

    Keywords

    none

    install

    npm i hkdf

    Downloadsweekly downloads

    2,224

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar