public Task <signedResponse> getResp(signedResponse s)
        {
            var temp = new signedResponse();


            temp.resp = s.resp;

            var b   = Encoding.ASCII.GetBytes(s.resp);
            var key = Encoding.ASCII.GetBytes("012345678901234567890123");
            var iv  = Encoding.ASCII.GetBytes("00000000");

            TripleDES des = TripleDES.Create();

            des.Mode = CipherMode.CBC;
            des.Key  = key;
            des.IV   = iv;
            ICryptoTransform ic = des.CreateEncryptor();

            byte[] enc = ic.TransformFinalBlock(b, 0, b.Length);
            var    i   = UTF8Encoding.UTF8.GetString(enc);

            Console.WriteLine(new { i, s.signed });
            Console.WriteLine(i.Equals(s.signed));

            if (s.signed != null)
            {
                Console.WriteLine("Inside not null");
                if (!s.signed.Equals(i))
                {
                    Console.WriteLine("Inside I not s.signed");

                    temp.resp   = "False";
                    temp.signed = "";
                }
                else
                {
                    temp.signed = i;
                }
            }
            else
            {
                Console.WriteLine("Inside else");
                temp.signed = i;
            }

            return(temp.AsResult());
        }
        public Task<signedResponse> getResp(signedResponse s)
        {
            var temp = new signedResponse();

           
                temp.resp = s.resp;

                var b = Encoding.ASCII.GetBytes(s.resp);
                var key = Encoding.ASCII.GetBytes("012345678901234567890123");
                var iv = Encoding.ASCII.GetBytes("00000000");

                TripleDES des = TripleDES.Create();
                des.Mode = CipherMode.CBC;
                des.Key = key;
                des.IV = iv;
                ICryptoTransform ic = des.CreateEncryptor();

                byte[] enc = ic.TransformFinalBlock(b, 0, b.Length);
                var i = UTF8Encoding.UTF8.GetString(enc);
                Console.WriteLine(new { i, s.signed });
                Console.WriteLine(i.Equals(s.signed));

                if (s.signed != null)
                {
                    Console.WriteLine("Inside not null");
                    if (!s.signed.Equals(i))
                    {
                        Console.WriteLine("Inside I not s.signed");

                        temp.resp = "False";
                        temp.signed = "";
                    }
                    else
                    {
                        temp.signed = i;
                    }
                }
                else
                {
                    Console.WriteLine("Inside else");
                    temp.signed = i;
                }

            return temp.AsResult();
        }
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {
            var temp = new signedResponse();
            temp.resp = "hello";


            Action test = async delegate {
                var i = await this.getResp(temp);
                Console.WriteLine(new {i.resp, i.signed });
                temp = i;
                var i2 = await this.getResp(temp);
                Console.WriteLine(new { i2.resp, i2.signed });
                temp = i2;
                temp.resp = "newIn";
                var i3 = await this.getResp(temp);
                Console.WriteLine(new { i3.resp, i3.signed });
            };

            test();
           
        }
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {
            var temp = new signedResponse();

            temp.resp = "hello";


            Action test = async delegate {
                var i = await this.getResp(temp);

                Console.WriteLine(new { i.resp, i.signed });
                temp = i;
                var i2 = await this.getResp(temp);

                Console.WriteLine(new { i2.resp, i2.signed });
                temp      = i2;
                temp.resp = "newIn";
                var i3 = await this.getResp(temp);

                Console.WriteLine(new { i3.resp, i3.signed });
            };

            test();
        }