Files
tldr/pages.zh/common/makepasswd.md

20 lines
494 B
Markdown
Raw Permalink 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.

# makepasswd
> 生成和加密密码。
> 更多信息: <https://manpages.debian.org/latest/makepasswd/makepasswd.1.en.html>。
- 生成一个随机密码长度为8到10个字符包含字母和数字
`makepasswd`
- 生成一个10个字符长的密码
`makepasswd --chars {{10}}`
- 生成一个5到10个字符长的密码
`makepasswd --minchars {{5}} --maxchars {{10}}`
- 生成一个仅包含字符“b”、“a”或“r”的密码
`makepasswd --string {{bar}}`