1
0
Fork 0
mirror of https://github.com/Luzifer/korvike.git synced 2024-11-08 15:30:05 +00:00
korvike/functions/func_hash.go

14 lines
217 B
Go
Raw Permalink 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[:])
})
}