bootstrapconfig
This commit is contained in:
12
bootstrapconfig/password_test.go
Normal file
12
bootstrapconfig/password_test.go
Normal file
@ -0,0 +1,12 @@
|
||||
package bootstrapconfig
|
||||
|
||||
import "fmt"
|
||||
|
||||
func ExamplePasswordHash() {
|
||||
seed := []byte("myseed")
|
||||
hash := PasswordHashFromSeed(seed, []byte("mypass"))
|
||||
fmt.Println(JoinSeedAndHash(seed, hash))
|
||||
|
||||
// Output:
|
||||
// bXlzZWVk:HMSxrg1cYphaPuUYUbtbl/htep/tVYYIQAuvkNMVpw0
|
||||
}
|
Reference in New Issue
Block a user