文件名称:sequential-hash:一个按字典序排列的滚动哈希
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-11 09:07:52
JavaScript
顺序哈希 一个按字典序排列的滚动哈希 npm install sequential-hash 用法 var seqhash = require ( 'sequential-hash' ) var hash = seqhash ( 'sha256' ) // sha256 is the hash algorithm var prev = null var words = [ 'mathias' , 'wrote' , 'this' ] words . forEach ( function ( word ) { prev = hash ( word , prev ) console . log ( prev + ' -> ' + word ) } ) 运行上面的产品 00!c1768bf97517f3da6948ee49b4d7078890c910a9fc07065a38218
【文件预览】:
sequential-hash-master
----.gitignore(13B)
----README.md(1KB)
----example.js(245B)
----LICENSE(1KB)
----package.json(642B)
----index.js(443B)
----test.js(960B)
----.travis.yml(49B)