diff options
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index f1e4a3bf97..df0947ec61 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -43,7 +43,7 @@ func EncodeSha1(str string) string { return hex.EncodeToString(h.Sum(nil)) } -// EncodeSha256 string to sha1 hex value. +// EncodeSha256 string to sha256 hex value. func EncodeSha256(str string) string { h := sha256.New() _, _ = h.Write([]byte(str)) |