当我尝试输出数百个密码并打印出来时,我注意到其中实际上没有一个密码包含数字。
这是我输入的内容:$ pwgen -B -N 10000 15 > pw.txt
但是当我$ pwgen -B -N 10000 15
在那里执行这个的时候是控制台输出的数字。
答案1
我引用man pwgen
:
In addition, for backwards compatibility reasons, when stdout is
not a tty and secure password generation mode has not been requested,
pwgen will generate less secure passwords, as if the -0A options had
been passed to it on the command line. This can be overriden using
the -nc options.