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