bootstrapconfig

This commit is contained in:
Mikaël Cluseau
2022-03-28 18:36:44 +02:00
parent cfb325908f
commit d355a146c5
3 changed files with 119 additions and 0 deletions

View 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
}