<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Web.config on Art的辦公桌</title><link>https://blog.missart.net/tags/web.config/</link><description>Recent content in Web.config on Art的辦公桌</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><copyright>© 2026 Art</copyright><lastBuildDate>Wed, 04 Mar 2020 09:57:20 +0000</lastBuildDate><atom:link href="https://blog.missart.net/tags/web.config/index.xml" rel="self" type="application/rss+xml"/><item><title>連線字串加密的方式</title><link>https://blog.missart.net/encrypt-connection-string/</link><pubDate>Wed, 04 Mar 2020 09:57:20 +0000</pubDate><guid>https://blog.missart.net/encrypt-connection-string/</guid><description>&lt;p&gt;通常網站都會與資料庫溝通，也因此在 csharp 的專案設定檔，我們大都會將連線字串寫在這裡，便於程式調用，但資料庫連線字串包含了帳號密碼，直接寫在設定組態檔是一個資安漏洞
為了不要讓明碼直接暴露出去，我們這裡最好做一些防護措施，利用演算法將明文加密，等到要用的時候再解密出來。&lt;/p&gt;
&lt;p&gt;當然這樣的做法還是有風險的，因為加解密的 Key、IV 也還是一樣都放在組態檔內，所以這只能說是一個初步的防護方式&lt;/p&gt;</description></item></channel></rss>