Skip to content

Commit

Permalink
Update yespower.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mraksoll4 committed Apr 25, 2023
1 parent ce59cfa commit 9f73d71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yespower.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,13 @@ func YespowerHash(input []byte) []byte {

var result []byte
if time > 1676761800 {
resultHex := Yescrypt(input, 4096, 16, "Client Key")
resultHex := Yescrypt(input[:80], 4096, 16, "Client Key")
result, _ = hex.DecodeString(resultHex)
} else {
resultHex := Yespower(input, 2048, 32, "")
// Use 80 as the message length
resultHex := Yespower(input[:80], 2048, 32, "")
result, _ = hex.DecodeString(resultHex)
}

return result
}
}

0 comments on commit 9f73d71

Please sign in to comment.