You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
274 B
13 lines
274 B
'use strict'
|
|
var blake2b = require('./')
|
|
|
|
blake2b.ready(function () {
|
|
var hash = blake2b()
|
|
.update(Buffer.from('hello'))
|
|
.update(Buffer.from(' '))
|
|
.update(Buffer.from('world'))
|
|
.digest('hex')
|
|
|
|
console.log('Blake2b hash of "hello world" is %s', hash)
|
|
})
|
|
|
|
|