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