In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to generate high-strength passwords in the server". The content is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "how to generate high-strength passwords in the server".
1. Pwgen
The characteristic of pwgen is that it can generate passwords that can be remembered by humans and are secure enough. However, if you want to generate random passwords that are not easy to remember, just add the-s option.
(1) installation of pwgen
For Debian/Ubuntu systems, you can install them directly using the apt-get command.
$sudo apt install pwgen
For RHEL/CentOS systems, you can install them using the yum command.
$sudo yum install pwgen
Other systems can use the corresponding installation commands, which will not be discussed here.
(2) the usage of pwgen
The simplest use of pwgen is to type in this command directly, generating 160 passwords without any arguments. By default, it generates a password that is easy for humans to remember, 8 characters, including case and numbers.
A total of 160, divided into 20 rows and 8 columns. Limited to space, the following results have been reduced.
$pwgen ameiK2oo aibi3Cha EPium0Ie aisoh2Ee Nidee9ae uNga0Bee uPh9ieM1 ahn1ooNg oc5ooTea tai7eKid tae2yieS hiecaiR8 wohY2Ohk Uab2maed hec4aXoh Ob6Nieso. AhV4yore ue2laePh fu1eThui qui7aePh Fahth2nu ohk9puLo aiBeez0b Neengai5
If you want to generate five 14-character passwords, you can use the following command:
$pwgen-s 14 5 7YxUwDyfxGVTYD em2NT6FceXjPfT u8jlrljbrclcTi IruIX3Xu0TFXRr X8M9cB6wKNot1e
If you want to generate super hard to remember, super secure passwords, you can add the-cnys option and use the following format:
BQ} pagebrush I n.a3meme. D3VQ3roomi
2. Openssl
The openssl command calls various cryptographic functions in some libraries of OpenSSL to generate passwords, and the intensity is relatively high.
We can use the following command format to generate a 14-bit random password:
$openssl rand-base64 14 WjzyDqdkWf3e53tJw/c=
However, such a command can only generate one password, and if you want to generate passwords in bulk, you need to write a simple Shell statement.
$for pw in {1.. 4}; do openssl rand-base64 14; done 6i0hgHDBi3ohZ9Mil8I = gtn+y1bVFJFanpJqWaA= rYu+wy+0nwLf5lk7TBA= xrdNGykIzxaKDiLF2Bw=
3. Gpg
In 1991, programmer Phil Zimmermann developed the encryption software PGP to avoid government surveillance. This software is very easy to use, quickly spread, and has become a necessary tool for many programmers. However, it is commercial software and cannot be used freely. So the Free Software Foundation decided to develop a replacement for PGP, which is called GnuPG.
We can use the following format to generate a random 14-bit high-strength password.
$gpg-gen-random-armor 1 14 or $gpg2-gen-random-armor 1 14 jq1mtY4gBa6gIuJrggM=
Similarly, if this command can generate only one password, if you want to generate more than one, you need to write a simple Shell statement.
$for pw in {1... 4}; do gpg-- gen-random-- armor 1 14; done or $for pw in {1.. 4}; do gpg2-- gen-random-- armor 1 14; done F5ZzLSUMet2kefG6SSC = 8h7BFNs8Qu0cnrvHrY = backed PEt28CosR5xO05canSQ = m21bfx6UG1cBDzVGKcE = all the contents of the article "how to generate strong passwords in the server", thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.