tldr/pages.zh/common/apg.md

25 lines
498 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 {{字典文件}}`