fix some hash verification skill issue
This commit is contained in:
parent
2f832a2066
commit
202da23be3
1 changed files with 3 additions and 2 deletions
5
IGA.ts
5
IGA.ts
|
@ -231,8 +231,9 @@ function hash(input: string, salt: number = 0, len: number = 32, seed?: number):
|
|||
dataBins[0] = xor(dataBins[0], dataBins[1])
|
||||
dataBins.splice(1, 1)
|
||||
}
|
||||
const crc = checksum(dataBins[0])
|
||||
const hash = bin2hex(pBin + dataBins[0] + crc)
|
||||
let hash = bin2hex(pBin + dataBins[0])
|
||||
const crc = checksum(hash)
|
||||
hash += bin2hex(crc)
|
||||
return hash
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue