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 > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to use MD5 encryption processing in CAS. Many people may not know much about it. In order to let you know more, Xiaobian summarizes the following contents for you. I hope you can gain something according to this article.
1. Course name: MD5 encryption in CAS
2. Specific content
The database password given before belongs to the plaintext display, which is obviously not suitable for our development, so we should use ciphertext to deal with it in actual work. Then MD5+ salt value mode will be adopted to realize the encryption processing operation of the password.
The salt value is processed by Base64 when encryption is performed this time.
The salt value is obtained: "bWxkbmphdmE=", and then MD5 must be used for encryption, but this encryption process is completed in the mode of 3 times encryption. Example: Implementing MD5 encryption operations
Then you can get the encrypted database script content:
Then you need to perform specific MD5 encryption verification processing, and you need to modify the configuration of the cas server. A new cipher needs to be created for CAS.
CAS cryptographer has its own implementation class, and this implementation class is in the "cas-server-core-api-4.1.7.jar" package.
2. Then package and compile this development package:
3. Upload the exported "md5-code.jar" file to the linux system, and then move it to the cas/WEB-INF/lib directory;
mv/srv/ftp/md5-code.jar/usr/local/tomcat/webapps/cas/WEB-INF/lib/
4. Then you need to edit the deployerConfigContext.xml configuration file to introduce the operation of the password class just defined:
·First define bean declaration for cryptographic processing:
5. Replace the old configuration with the new configuration file;
mv/srv/ftp/deployerConfigContext.xml/usr/local/tomcat/webapps/cas/WEB-INF/After reading the above, do you have any further understanding of how to use MD5 encryption in CAS? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
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.