guichet/utils/ssha.go

11 lines
216 B
Go
Raw Normal View History

2023-12-09 17:22:37 +00:00
package utils
2023-07-26 06:31:43 +00:00
import (
"github.com/jsimonetti/pwscheme/ssha512"
)
// Encode encodes the []byte of raw password
func SSHAEncode(rawPassPhrase string) (string, error) {
return ssha512.Generate(rawPassPhrase, 16)
}