diff options
| author | Christine Dodrill <me@christine.website> | 2019-03-27 07:47:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-27 07:47:10 -0700 |
| commit | dcfac4d41fc50d2cf06ee3df4e03dfd66dd7e0f4 (patch) | |
| tree | 7b1f1515d7e8297de14f8a2ebdfa8f4f3ae332df /cmd/site/hash.go | |
| parent | 20c08e68d1218475d6c6f3ca8ae718e1f508c696 (diff) | |
| parent | bce017f56f2413872a3a904067d6d19d173a9904 (diff) | |
| download | xesite-dcfac4d41fc50d2cf06ee3df4e03dfd66dd7e0f4.tar.xz xesite-dcfac4d41fc50d2cf06ee3df4e03dfd66dd7e0f4.zip | |
Merge pull request #18 from Xe/reorg
Reorg
Diffstat (limited to 'cmd/site/hash.go')
| -rw-r--r-- | cmd/site/hash.go | 14 |
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) -} |
