From d0ff1b2d04fc0caf57d99f1d34ce13cf4aae6a1a Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 27 Mar 2019 07:18:52 -0700 Subject: reorg: phase 1 --- cmd/site/hash.go | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 cmd/site/hash.go (limited to 'cmd/site/hash.go') 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) -} -- cgit v1.2.3