From 863b5301e2d2c75683086a608ebdf8f497133b94 Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 13 Apr 2021 13:52:09 +0530 Subject: Re-initialize project for Raku port --- hibp/hash.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 hibp/hash.go (limited to 'hibp/hash.go') diff --git a/hibp/hash.go b/hibp/hash.go deleted file mode 100644 index 9b8d35c..0000000 --- a/hibp/hash.go +++ /dev/null @@ -1,15 +0,0 @@ -package hibp - -import ( - "crypto/sha1" - "encoding/hex" - "strings" -) - -// GetSHA1Hash takes a string as an input & returns SHA-1 Hash -func GetSHA1Hash(pass string) string { - alg := sha1.New() - alg.Write([]byte(pass)) - - return strings.ToUpper(hex.EncodeToString(alg.Sum(nil))) -} -- cgit 1.4.1-2-gfad0