Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Implementing OpenSSL simple encryption and decryption string under Linux

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Scene

Clear text password exists in shell script

Customers require that the use of plaintext passwords and passwords for encryption are prohibited.

Scheme

Learned about the Linux OpenSSL encryption and decryption tool on the Internet.

Can specify a variety of encryption algorithms for characters, files for encryption processing.

There are many cases of encryption and few cases of decryption.

If you are interested, you can check the Chinese course.

The encryption algorithm is used in the case: AES

Example

# # all commands are executed in Linux # check whether the tool is installed in my environment. The article does not describe the installation # # openssl## encryption (get a password after execution) # # echo abc | openssl aes-128-cbc-k 123-base64## decryption (password is too long, indicated by *) # # echo * | openssl aes-128-cbc-d-k 123-base64

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report