From 45f9f28c0fa7070b9ae7ee38d5e624331616acb5 Mon Sep 17 00:00:00 2001 From: komuw Date: Mon, 16 Sep 2024 13:51:24 +0300 Subject: [PATCH] g --- cry/hash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cry/hash.go b/cry/hash.go index d8fd9242..5b4a899d 100644 --- a/cry/hash.go +++ b/cry/hash.go @@ -39,6 +39,8 @@ func Hash(password string) string { // Add version, salt to the derived key. // The salt and the derived key are hex encoded. + // NB: We could include the other params(_time, memory, threads) in this serialization. + // But we don't for simplicity & also because those params are hardcoded for each cry version. return fmt.Sprintf( `%d%s%x%s%x`, version, @@ -54,7 +56,6 @@ func Hash(password string) string { func Eql(password, hash string) error { params := strings.Split(hash, "$") - fmt.Println("\n\t params: ", params) if len(params) != 3 { return errors.New("ong/cry: unable to parse") }