for i in $(jot 100)
do
echo $i characters
rbw gen $i | wc -m
rbw gen $i --no-symbols | wc -m
rbw gen $i --nonconfusables | wc -m
rbw gen $i --only-numbers | wc -m
done > rbw-pass
GNU coreutils users will need to replace jot(1) with seq(1). The results are off by one due to newline character being present and counted.
Also, while we're at it, options are doubled on error, i.e.:
$ rbw gen --only-numbers
error: The following required arguments were not provided:
<len>
USAGE:
rbw generate <len> <--no-symbols|--only-numbers|--nonconfusables|--diceware|--no-symbols|--only-numbers|--nonconfusables|--diceware>
For more information try --help
Hello,
I just noticed that the length of a generated password is not respected and is limited depending on what option has been used, i.e.:
--no-symbols
--nonconfusables
--only-numbers
Attached is an output of:
GNU coreutils users will need to replace
jot(1)
withseq(1)
. The results are off by one due to newline character being present and counted.Also, while we're at it, options are doubled on error, i.e.: