mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 16:01:16 +00:00
12 lines
163 B
Go
12 lines
163 B
Go
package crypt
|
|
|
|
import (
|
|
"crypto/sha256"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func SHA256(s string) string {
|
|
hash := sha256.Sum256([]byte(s))
|
|
return hex.EncodeToString(hash[:])
|
|
}
|