summary refs log tree commit diff stats
path: root/hibp/hash.go
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-04-13 13:52:09 +0530
committerAndinus <andinus@nand.sh>2021-04-13 13:52:09 +0530
commit863b5301e2d2c75683086a608ebdf8f497133b94 (patch)
treefc7a07bac513abbd874102fa2e95b9dd0b00d415 /hibp/hash.go
parent12fdf3632824a3ffea9f8dfc9249cb7a27e6a2c8 (diff)
downloadorion-863b5301e2d2c75683086a608ebdf8f497133b94.tar.gz
Re-initialize project for Raku port
Diffstat (limited to 'hibp/hash.go')
-rw-r--r--hibp/hash.go15
1 files changed, 0 insertions, 15 deletions
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)))
-}