]> Cypherpunks.ru repositories - balloon.git/commitdiff
-help mentions SHA512 hash
authorSergey Matveev <stargrave@stargrave.org>
Sat, 5 Oct 2019 08:10:13 +0000 (11:10 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 6 Oct 2019 09:58:52 +0000 (12:58 +0300)
cmd/balloon/main.go

index 65d27a11e8d9f59e554f885b15d64e62250c88ba..b7fd973b5874af07430ffca10b3420f1f8bc9e24 100644 (file)
@@ -25,6 +25,7 @@ import (
        "flag"
        "fmt"
        "io"
+       "os"
 
        "go.cypherpunks.ru/balloon"
 )
@@ -35,6 +36,10 @@ func main() {
        p := flag.Int("p", 4, "Number of threads")
        saltHex := flag.String("salt", "", "Salt, hexadecimal, optional")
        passwd := flag.String("passwd", "", "Password")
+       flag.Usage = func() {
+               fmt.Fprintf(os.Stderr, "balloon -- Strengthen password with Balloon+SHA512\n\n")
+               flag.PrintDefaults()
+       }
        flag.Parse()
        var salt []byte
        var err error