Files
argon-v3/src/sha256.go
2023-06-29 00:57:52 +01:00

14 lines
174 B
Go

package main
import (
"crypto/sha256"
"fmt"
)
func sha256Hash(s string) string {
h := sha256.New()
h.Write([]byte(s))
bs := h.Sum(nil)
return fmt.Sprintf("%x", bs)
}