aboutsummaryrefslogtreecommitdiff
path: root/cmd/site/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/site/hash.go')
-rw-r--r--cmd/site/hash.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/site/hash.go b/cmd/site/hash.go
deleted file mode 100644
index ed6112c..0000000
--- a/cmd/site/hash.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package main
-
-import (
- "crypto/md5"
- "fmt"
-)
-
-// Hash is a simple wrapper around the MD5 algorithm implementation in the
-// Go standard library. It takes in data and a salt and returns the hashed
-// representation.
-func Hash(data string, salt string) string {
- output := md5.Sum([]byte(data + salt))
- return fmt.Sprintf("%x", output)
-}