diff options
Diffstat (limited to 'auth/hashpass.go')
-rw-r--r-- | auth/hashpass.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/auth/hashpass.go b/auth/hashpass.go deleted file mode 100644 index 4e5041a..0000000 --- a/auth/hashpass.go +++ /dev/null @@ -1,13 +0,0 @@ -package auth - -import ( - "golang.org/x/crypto/bcrypt" -) - -// hashPass takes a string as input and returns the hash of the -// password. -func hashPass(password string) (string, error) { - // 10 is the default cost. - bytes, err := bcrypt.GenerateFromPassword([]byte(password), 10) - return string(bytes), err -} |