guichet/utils-ssha.go
2023-07-26 08:31:43 +02:00

10 lines
215 B
Go

package main
import (
"github.com/jsimonetti/pwscheme/ssha512"
)
// Encode encodes the []byte of raw password
func SSHAEncode(rawPassPhrase string) (string, error) {
return ssha512.Generate(rawPassPhrase, 16)
}