Files
go-easy-utils/cryptox/hash_example_test.go
2025-07-08 15:26:54 +08:00

14 lines
201 B
Go

package cryptox
import "fmt"
func ExampleHashSHA256() {
str := "hello"
res := HashSHA256(str)
fmt.Println(res)
// Output:
// 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
}