In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use the openssl command line under Linux". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to use the openssl command line under Linux".
1. Base64 encoding / decoding
When it comes to sending email attachments from the command line, many people think of uuencode. You can also use base64 encoding. The following is the use of openssl base64 encoding / decoding:
$openssl base64 "filename.bin" filename.txt
$openssl base64-d "filename.txt" filename.bin
two。 Check the consistency of the file
There are many ways to check file consistency under UNIX, such as sum, cksum, md5sum, sha1sum and so on. Sum and cksum are suitable for simple parity, and the generated parity codes are easy to repeat. Md5sum has security vulnerabilities, and sha1sum is currently recommended. However, sha1sum is used differently on different platforms. Considering the cross-platform, it is recommended to use openssl.
$openssl sha1 filename
SHA1 (filename) = e83a42b9bc8431a6645099be50b6341a35d3dceb
$openssl md5 filename
MD5 (filename) = 26e9855f8ad6a5906fea121283c729c4
3. File encryption / decryption
OpenSSL supports many encryption algorithms, but some are deprecated just for backward compatibility, such as DES and RC4-40. The recommended encryption algorithms are bf (Blowfish) and-aes-128-cbc (128bit key AES encryption algorithm running in CBC mode) with guaranteed encryption strength.
Encryption example:
$openssl enc-aes-128-cbc "filename" filename.aes-128-cbc
Enter aes-128-cbc encryption password:
Verifying-enter aes-128-cbc encryption password:
Decryption example:
$openssl enc-d-aes-128-cbc-in filename.aes-128-cbc "filename
Enter aes-128-cbc decryption password:
The above is all the contents of the article "how to use the openssl Command Line under Linux". 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.