use OpenSSL to encrypt user data
OpenSSL paswd can encrypt user's password
-1 means encryption using MD5
-SALT specifies a random number, although this random number is statically specified.
Generate random numbers
Two equals signs in output content are Base64 encoded fixed format
-base64 indicates that the generated random number is displayed using the Base64 encoded format
-hex indicates that the generated random number is displayed in hexadecimal format
10 indicates a 10-byte random number is generated
Encrypt user passwords with random numbers generated automatically by the system
Computes the hash value of a file
OpenSSL DGST-SHA1 =sha1sum
Encrypting files
-in files that need to be processed
-out Output Files
-pass Encryption Password
-e Encryption command Purpose
-D Decryption
-a encoded format The default output file content is displayed by the BASE64 encoded format
adding random numbers when-salt encryption
Now, decrypt it.
Look at the decrypted file contents.
Note: The decrypted file permissions may not be consistent with the original file.
Simple usage of Linux OpenSSL