diff options
author | Andinus <andinus@nand.sh> | 2021-04-13 13:52:09 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-04-13 13:52:09 +0530 |
commit | 863b5301e2d2c75683086a608ebdf8f497133b94 (patch) | |
tree | fc7a07bac513abbd874102fa2e95b9dd0b00d415 /hibp/hash.go | |
parent | 12fdf3632824a3ffea9f8dfc9249cb7a27e6a2c8 (diff) | |
download | orion-863b5301e2d2c75683086a608ebdf8f497133b94.tar.gz |
Re-initialize project for Raku port
Diffstat (limited to 'hibp/hash.go')
-rw-r--r-- | hibp/hash.go | 15 |
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))) -} |