In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In life, we need to use a large number of passwords, these passwords had better not be unified, otherwise in case of leakage, all accounts will be exposed to risk. In our work, we also need to use a large number of passwords, such as adding users in batches, setting server passwords in bulk and so on.
If you think about it on your own, the password you think of can be not strong enough and more laborious. Here are three ways to generate high-strength passwords in batches.
The so-called high-strength password is a password that contains upper and lower case, numbers and symbols.
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:
$pwgen-cnys 14 20 mQ3E=vfGfZ,5 [B # zmj {i5 | ZS) {jg Ht_ 8i7OqJ% N` ~ 2 443fa5iJ\ Wmurl?]? Qs$o=vz2vgQBR ^ 'Ry0Az | J9p2+0 t2oA QRx EsX*%_' | QRx EsX*%_ (4./QCRJ ACr-,8yF9&eM [*! Xz1C'bw?tv50o 8hfv-fK (VxwQGS qroomqj? sD7Xmkb7 ^ N#Zp\ _ Y2kr%!) ~ 4*pwYs {bq] Hh&Y | 4uink Q1roomjSyst8;] {$N#FPX1L2B {h I | 01fcK.z?QTz "l~] JD_,W%5bp.E + i2=D3 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 = BroomPEt28CosR5xO05CosR5xO05canSQ = m21bfx6UG1cBDzVGKcE =
4. Summary
A strong password is the first step in ensuring the security of our account, and its importance should not be underestimated. This article introduces three ways to randomly generate high-strength passwords, but there are many tools that can also generate such passwords, such as makepasswd, mkpasswd, and so on.
China Envis: protect core data and safeguard network security
Source: 51CTO
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.