1
0
mirror of https://github.com/Luzifer/korvike.git synced 2024-09-19 08:52:57 +00:00
korvike/functions/func_hash.go

14 lines
217 B
Go
Raw Normal View History

package functions
import (
"crypto/sha512"
"encoding/hex"
)
func init() {
registerFunction("sha512sum", func(data string) string {
hash := sha512.Sum512([]byte(data))
return hex.EncodeToString(hash[:])
})
}