2016-12-21 42 views

回答

0

是的,因爲您正在使用Asp.net應用程序,您可以使用AppSettings部分的web.config文件保存密鑰。

例如

<appSettings> 
    <add key="Key" value="dcsdUBYBYB66767"/> 
</appSettings> 

,同時加密/解密

string key = System.Configuration.ConfigurationManager.AppSettings["Key"]; 
相關問題