Files
gatus/security/sha512.go
T

12 lines
173 B
Go
Raw Normal View History

2020-10-14 19:24:00 -04:00
package security
import (
"crypto/sha512"
"fmt"
)
func Sha512(s string) string {
hash := sha512.New()
hash.Write([]byte(s))
return fmt.Sprintf("%x", hash.Sum(nil))
}