crypto: use latest crypto-browserify
This commit is contained in:
parent
9d2784a441
commit
f0370ef46f
2 changed files with 6 additions and 5 deletions
src
|
@ -13,10 +13,7 @@ function hash256(buffer) {
|
|||
}
|
||||
|
||||
function ripemd160(buffer) {
|
||||
var array = convert.bufferToWordArray(buffer)
|
||||
var result = CryptoJS.RIPEMD160(array)
|
||||
|
||||
return convert.wordArrayToBuffer(result)
|
||||
return crypto.createHash('rmd160').update(buffer).digest()
|
||||
}
|
||||
|
||||
function sha1(buffer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue