Esempio n. 1
0
        public ActionResult <string> Get(string text, string data)
        {
            string infconfigjson = "{\"nYOlZiAWZxQ=\":\"az/PAM8wHUo=\",\"BFjFcmt9UYk=\":\"Lg6UcClJAIjGUkbMwoAgLg==\"}";
            string infkjson      = "{\"Ixis\":\"yxAiSeWSNj2XPdRFqi7q9D+Q/uwzmiGmTTm9m+BWb8IbcAlnKVIa8aSaAjkh2yqkHSl4RHX9gYGo\"}";
            string key           = "gqyHU46ImoqpxJqmVWtdexgvmBBjOOPjQaoAfQ/xZ90zUGWAi5kdxrp4Xk1hq7+X8jQX+hIEDkAhQs4BP8C8A/sfs70W4asjxhpt9Sg84rk26xzdWVwpz1CLVPt+TlKiTAnnSLbUTZpVzra1C1IfoHGisrxSBiw+i12dI8vAjgiL9UxDxeKlRQ==AO+oIwHNvWw=nYOlZiAWZxQ=BFjFcmt9UYk=/N4ybPiUIdQ=";
            string result        = EncryptClas.Encriptar(infkjson, key);

            return(result + data);
        }
Esempio n. 2
0
        public string Post([FromBody] Data request)
        {
            string result = EncryptClas.DesEncriptar(request.cadena, request.key);

            return(result);
        }