예제 #1
0
        public JsonResult SetClientKey([FromBody] string key)
        {
            var privateKey    = HttpContext.Session.Get("PRIVATE_KEY");
            var decryptString = rsaEncryption.DecryptWithXmlFormat(privateKey.ToUTF8String(), key);

            HttpContext.Session.Set("CLIENT_AES_KEY", decryptString.ToBytes());
            return(new JsonResult(new { code = "200" }));
        }