In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Introduction: in the Linux system, we want to generate a password manually. We can use opensll passwd to generate a password as the password for the user's account. The passwords in the Linux system are stored in the / etc/shadow file and are stored in an encrypted way. According to the different encryption methods, the number of digits of the encrypted passwords generated is also different.
The function of openssl passwd is to calculate the password hash in order to prevent the password from appearing in clear text.
Syntax format: openssl passwd [option] passwd
The common options for openssl passwd are as follows:
-1: indicates that MD5 encryption algorithm is used.
-salt: specify a salt value and do not use randomly generated salt. When using the encryption algorithm to encrypt, even if the password is the same, the salt is different, the calculated hash value is not the same, unless the password is the same, the salt value is the same, the calculated hash value is the same. The salt is an 8-byte string.
Example:
[tom@localhost] $openssl passwd-1-salt '12345678' # # Note '12345678' is not the password but the length of the password
Password: # # the password is entered here
$1 $12345678 $1qWiC4czIc07B4J8bPjfC0 # # this is the generated ciphertext password
# # manually add the generated password string to / etc/shadow and it can be used as the login password of the user.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.