1 Star 0 Fork 1

SillyMan/Go实用工具包

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
blake2b.go 264 Bytes
一键复制 编辑 原始数据 按行查看 历史
SillyMan 提交于 2022-06-23 11:16 +08:00 . 清理标记为过去的ioutil方法
package easyhash
import (
"crypto"
"strings"
)
// BLAKE2b256 使用 crypto.BLAKE2b_256 进行哈希
func BLAKE2b256(s string, salt []byte) string {
h := crypto.BLAKE2b_256.New()
result := MustEasyHash(h, strings.NewReader(s), salt)
return Hex2Str(result)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sillyman/simpleUtil.git
git@gitee.com:sillyman/simpleUtil.git
sillyman
simpleUtil
Go实用工具包
5c98b36afa10

搜索帮助