X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Fballoon%2Fmain.go;h=e5d42d303291904439c8d8befbe70d41d2255b92;hb=HEAD;hp=ba3be01338e123aa63c689a7d23985954f732ae0;hpb=cb214daf358024d6ceaaa314cfddf0e59003e79b;p=balloon.git diff --git a/cmd/balloon/main.go b/cmd/balloon/main.go index ba3be01..e5d42d3 100644 --- a/cmd/balloon/main.go +++ b/cmd/balloon/main.go @@ -1,20 +1,18 @@ -/* -balloon -- Balloon password hashing function -Copyright (C) 2016-2019 Sergey Matveev - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this program. If not, see -. -*/ +// balloon -- Balloon password hashing function +// Copyright (C) 2016-2024 Sergey Matveev +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this program. If not, see +// . package main @@ -28,13 +26,13 @@ import ( "io" "os" - "go.cypherpunks.ru/balloon" + "go.cypherpunks.ru/balloon/v2" ) func main() { - s := flag.Int("s", 1<<18, "Space cost, number of hash-sized blocks") - t := flag.Int("t", 2, "Time cost, rounds") - p := flag.Int("p", 4, "Number of threads") + s := flag.Int("s", 1<<16, "Space cost, number of hash-sized blocks") + t := flag.Int("t", 3, "Time cost, rounds") + p := flag.Int("p", 1, "Number of threads") saltHex := flag.String("salt", "", "Salt, hexadecimal, optional") passwd := flag.String("passwd", "", "Password") flag.Usage = func() {