node-dynamic-argon2d

1.0.3 • Public • Published

node-dynamic-argon2d

DYN logo

Copyright (c) 2016-2019 Duality Blockchain Solutions

What is node-dynamic-argon2d?

A Node.js module of the Argon2d hashing parameters used in Dynamic (DYN).

Installation Instructions

It is available to install via the Node.js Package Manager (NPM) by using the command:

$ npm install node-dynamic-argon2d

or by cloning from Github and installing locally using NPM:

$ git clone https://github.com/duality-solutions/node-dynamic-argon2d

$ cd node-dynamic-argon2d

$ npm install

Usage

to create a raw hash from a string of data

var argon2d = require('node-dynamic-argon2d');
var buf = Buffer.from("someString", 'utf8');
var hash = argon2d.argon2d(buf);
console.log(hash);
//should return <Buffer 0d 01 c4 09 bd 11 f1 07 d0 e9 41 ca c3 bd bf 3e ed 02 0f 9e ca d2 2b 8a 8f a0 eb 3a e2 2c b1 e0>

License

Work licensed under the MIT License. Please check P-H-C/phc-winner-argon2 for license over Argon2 and the reference implementation.

Readme

Keywords

Package Sidebar

Install

npm i node-dynamic-argon2d

Weekly Downloads

21

Version

1.0.3

License

none

Unpacked Size

156 kB

Total Files

27

Last publish

Collaborators

  • spencerlievens