9 "cypherpunks.ru/balloon"
13 s = flag.Int("s", 1<<18, "Space cost, number of hash-sized blocks")
14 t = flag.Int("t", 2, "Time cost, rounds")
15 p = flag.Int("p", 4, "Number of threads")
16 saltHex = flag.String("salt", "deadbabe", "Salt, hexadecimal")
17 passwd = flag.String("passwd", "", "Password")
22 salt, err := hex.DecodeString(*saltHex)
26 fmt.Println(hex.EncodeToString(balloon.H(sha512.New, []byte(*passwd), salt, *s, *t, *p)))