pwgen:输出到文件时没有数字

pwgen:输出到文件时没有数字

当我尝试输出数百个密码并打印出来时,我注意到其中实际上没有一个密码包含数字。

这是我输入的内容:$ 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.

相关内容