In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you the "ASP.NET web.config database connection string how to achieve encryption and decryption", the content is easy to understand, clear, hope to help you solve doubts, the following let Xiaobian lead you to study and learn "ASP.NET web.config database connection string how to achieve encryption and decryption" this article.
Directly to the method: start-- > run, type cmd, and then enter the following
Encryption:
C:\ WINDOWS\ Microsoft.NET\ Framework\ v2.0.50727\ aspnet_regiis.exe-pef "connectionStrings"your Web project path"
Decryption:
C:\ WINDOWS\ Microsoft.NET\ Framework\ v2.0.50727\ aspnet_regiis.exe-pdf "connectionStrings"your Web project path"
.net modifies the path for the version, where the name of the connectionStrings connection string.
It is important to note that a local key is used in the encryption process, which means that the decryption process must be done on the same computer. If the encrypted Web.config file is moved to another computer, the connection string in the Web.config file will not be decrypted properly.
Comparison before and after encryption:
1. Before encryption
two。 After encryption
Rsa Key fDfW3bnVt21RF3N39vDoPphEmDYbUX4cmciD/3+LMY0yRLHckyulnnyBLoflB7DUjyXXms0V33e7MOKt+u2TAocn6x+QHo9Z4Onf1fV0nEq6uTprWZ04M8SLbKp+Vg63JLtYQUft6xF+Bi/aN/ZJ3PYal93bdfNJjtXA2xsb82k= 92WEStBHBh0zeu705wseRUajhAHumV9uCrmFJWII8SrhQpjEDrSl0O AfhwYFENr4xpHSfkNDTEFVV5D4MXr3meMsCcpingoYEQxQUm1QYLe9mGDaccessible NEaBnv95WzaDcdDyE1SkNKkq01pX94OUV1OygsQtEx1fCZd6fd7fd7kx4PAFKDD0he6ajzNFmCoFxg1Dd1encrypted MD3mukgFef64NbjYovW8v2G67v8ronxkivkivkivkivkivnLepnLep2DjWcQQLU1SkNKkq01OX94OUV1OygsQTEx1fCZd6fd7kx4PAFKDD0he6ajzNFFxg1Dd1MD3mukFef64NbjYovW8v6GYYLe9mGDNAEaBnv95WzaDcdDyE1SkNKkq01pX94OUV1OygsQTEx1fCZd6fd7fd7kx4PAFKDD0he6ajzNFFxg1D1D1MD3mukgFef64NbjYovWTN8v6GYYLe9mGDNANEaBnv95WzaDcdDyE1SkNKkq01pX94OUV1OygsQTEx1fCZd6fd7fd7kx4PAFKDD0he6ajzNFmFxg1Dd1MD3mukgFef64NbjYovW8GGG6w6WKkq01pX94OUV1Oyg 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.