gvguichet/ssha.go

11 lines
215 B
Go
Raw Normal View History

2020-02-09 17:45:22 +01:00
package main
import (
2022-07-19 10:35:14 +02:00
"github.com/jsimonetti/pwscheme/ssha512"
2020-02-09 17:45:22 +01:00
)
// Encode encodes the []byte of raw password
2022-07-19 10:35:14 +02:00
func SSHAEncode(rawPassPhrase string) (string, error) {
return ssha512.Generate(rawPassPhrase, 16)
2020-02-09 17:45:22 +01:00
}