Hash kits for Golang development.
go get -u github.com/likexian/gokit
import (
"github.com/likexian/gokit/xhash"
)
Visit the docs on GoDoc
h := xhash.Md5("12345678")
fmt.Println(h.Hex())
fmt.Println(h.B64())
h := xhash.HmacMd5("key", "12345678")
fmt.Println(h.Hex())
fmt.Println(h.B64())
h, err := xhash.FileMd5("xhash.go")
if err != nil {
panic(err)
}
fmt.Println(h.Hex())
fmt.Println(h.B64())
Copyright 2012-2024 Li Kexian
Licensed under the Apache License 2.0
If this project is helpful, please share it with friends.
If you want to thank me, you can give me a cup of coffee.