1 Star 4 Fork 4

tym_hmm/go-helper

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Hash.go 217 Bytes
Copy Edit Raw Blame History
天蝎儿 authored 2022-11-16 18:04 +08:00 . 增加sha1
package Hash
import (
"crypto/sha256"
"encoding/hex"
)
/**
生成hash256
*/
func Hash256(str string) string {
h := sha256.New()
h.Write([]byte(str))
sum := h.Sum(nil)
s := hex.EncodeToString(sum)
return s
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tym_hmm/go-helper.git
git@gitee.com:tym_hmm/go-helper.git
tym_hmm
go-helper
go-helper
v1.1.170

Search