A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: apg command not found # Windows (WSL2) sudo apt-get update sudo apt-get install apg # Debian apt-get install apg # Ubuntu apt-get install apg # Alpine apk add apg # Kali Linux apt-get install apg # Fedora dnf install apg # Raspbian apt-get install apg # Dockerfile dockerfile.run/apg # Docker docker run cmd.cat/apg apg
apg 生成随机密码(默认密码长度为 8 位),Automated Password Generator - 简称 APG。
不加任何参数在终端中执行 apg,将默认生成 6 个随机密码。
┌──(namelysweet㉿DESKTOP-TMIJA63)-[~] └─$ docker run cmd.cat/apg apg TrorcOyts boyffEib ervAibij4 Maducarf= doiWevGek( CuheQuekOo ┌──(namelysweet㉿DESKTOP-TMIJA63)-[~] └─$ docker run cmd.cat/apg apg IbidEnk{ NacDolOuk9 uchkoyRig4 SolNicNek/ flodcyomya Dygjefca ┌──(namelysweet㉿DESKTOP-TMIJA63)-[~] └─$ docker run cmd.cat/apg apg Kniasheyk Wochyich5 Orsyiel8 SamJactit asegsocHom PiddIagAdd
生成密码不妨考虑 84 规则:即密码至少 8 位,外加至少 1 个大写字母、1 个小写字母、1 个数字及 1 个特殊字符。
apg [-a algorithm] [-r file] [-M mode] [-E char_string] [-n num_of_pass] [-m min_pass_len] [-x max_pass_len] [-c cl_seed] [-d] [-s] [-h] [-y] [-q]
-M mode new style password modes -E char_string exclude characters from password generation process -r file apply dictionary check against file -b filter_file apply bloom filter check against filter_file (filter_file should be created with apgbfm(1) utility) -p substr_len paranoid modifier for bloom filter check -a algorithm choose algorithm 1 - random password generation according to password modes 0 - pronounceable password generation -n num_of_pass generate num_of_pass passwords -m min_pass_len minimum password length -x max_pass_len maximum password length -s ask user for a random seed for password generation -c cl_seed use cl_seed as a random seed for password -d do NOT use any delimiters between generated passwords -l spell generated password -t print pronunciation for generated pronounceable password -y print crypted passwords -q quiet mode (do not print warnings) -h print this help screen -v print version information
apg 创建随机密码(默认密码长度为8位):
apg
apg 创建一个至少包含 1 个符号 ( S - symbol
)、1 个数字 ( N - number
)、1 个大写字母 ( C - uppercase
)、1 个小写字母 ( L - lowercase
) 的密码:
apg -M SNCL
apg 创建一个 16 个字符的密码:
apg -m 16
apg 创建最大长度为 16 位的密码:
apg -x 16
apg 创建一个字典中没有的密码,注意必须提供字典文件:
apg -r path/to/dictionary_file