1
0
Fork 0
mirror of https://github.com/Luzifer/korvike.git synced 2024-11-14 02:02:41 +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[:])
})
}