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.
12 lines
258 B
12 lines
258 B
var blake2b = require('./')
|
|
|
|
blake2b.ready(function () {
|
|
var hash = blake2b()
|
|
.update(new Buffer('hello'))
|
|
.update(new Buffer(' '))
|
|
.update(new Buffer('world'))
|
|
.digest('hex')
|
|
|
|
console.log('Blake2b hash of "hello world" is %s', hash)
|
|
})
|
|
|
|
|