详解C#App.config和Web.config加密

2019-12-30 19:45:55刘景俊

导出密钥容器


spnet_regiis -px "Key" "d:Key.xml" 

注意:加上-pri参数为导出公钥+私钥

导入密钥容器


aspnet_regiis -pi "Key" "d:Key.xml" 

删除密钥容器


aspnet_regiis -pz "Key"

注意:删除密钥程序会报错


注:相关教程知识阅读请移步到c#教程频道。