private string CreateRsaKey()
        {
            string keyDirectory  = base.Server.MapPath("~/config");
            string generatorPath = base.Server.MapPath("~/config/RSAGenerator/Rsa.exe");

            return(RsaKeyHelper.CreateRSAKeyFile(generatorPath, keyDirectory));
        }
Beispiel #2
0
        protected void RsaCreat_Click(object sender, System.EventArgs e)
        {
            string text = RsaKeyHelper.CreateRSAKeyFile(base.Server.MapPath("~/config/RSAGenerator/Rsa.exe"), base.Server.MapPath("~/config"), false);

            if (text == "success")
            {
                this.ShowMsg("新密钥对生成成功!", true);
                this.BindData();
                return;
            }
            this.ShowMsg("新密钥对生成失败" + text, false);
        }
Beispiel #3
0
        protected void RsaCreat_Click(object sender, EventArgs e)
        {
            string str = RsaKeyHelper.CreateRSAKeyFile(base.Server.MapPath("~/config/RSAGenerator/Rsa.exe"), base.Server.MapPath("~/config"), false);

            if (str == "success")
            {
                this.ShowMsg("新密钥对生成成功!", true);
                this.BindData();
            }
            else
            {
                this.ShowMsg("新密钥对生成失败" + str, false);
            }
        }