pkg/bootstrapconfig/password_test.go

13 lines
262 B
Go
Raw Normal View History

2022-03-28 16:36:44 +00:00
package bootstrapconfig
import "fmt"
func ExamplePasswordHash() {
seed := []byte("myseed")
hash := PasswordHashFromSeed(seed, []byte("mypass"))
fmt.Println(JoinSeedAndHash(seed, hash))
// Output:
// bXlzZWVk:HMSxrg1cYphaPuUYUbtbl/htep/tVYYIQAuvkNMVpw0
}