Files
tldr/pages.zh/common/apg.md
2023-05-22 16:41:00 +08:00

25 lines
509 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# apg
> 生成任意复杂度的随机密码。
> 更多信息:<https://manned.org/apg>.
- 生成随机密码(默认密码长度为 8 位):
`apg`
- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L)
`apg -M SNCL`
- 生成 16 个字符的密码:
`apg -m {{16}}`
- 生成最大长度为 16 位的密码:
`apg -x {{16}}`
- 生成未出现在字典中的密码(必须提供字典文件):
`apg -r {{路径/到/字典文件}}`