26 Star 238 Fork 48

golang-module / dongle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sm3.go 264 Bytes
一键复制 编辑 原始数据 按行查看 历史
package dongle
import (
"github.com/emmansun/gmsm/sm3"
)
// BySm3 encrypts by sm3.
// 通过 sm3 加密
func (e Encrypter) BySm3() Encrypter {
if len(e.src) == 0 || e.Error != nil {
return e
}
h := sm3.New()
h.Write(e.src)
e.dst = h.Sum(nil)
return e
}
Go
1
https://gitee.com/golang-module/dongle.git
git@gitee.com:golang-module/dongle.git
golang-module
dongle
dongle
master

搜索帮助