Esempio n. 1
0
        private static void test_digest()
        {
            string nonce   = "dcd98b7102dd2f0e8b11d0f600bfb0c093";
            string cnonce  = "0a4f113b";
            string user    = "******";
            string realm   = "*****@*****.**";
            string pass    = "******";
            string alg     = "md5";
            string ncount  = "00000001";
            string method  = "GET";
            string qop     = "auth";
            string uri     = "/dir/index.html";
            string hentity = "";
            string sessionkey;

            AuthDigest.digest_ha1(alg, user, realm, pass, nonce, cnonce, out sessionkey);
            string response;

            AuthDigest.digest_response(sessionkey, nonce, ncount, cnonce, qop, method, uri, hentity, out response);
            Console.WriteLine("Response = {0}", (object)response);
        }
Esempio n. 2
0
 public static void digest_ha1(string user, string realm, string pass, out string sessionkey)
 {
     AuthDigest.digest_ha1("md5", user, realm, pass, "", "", out sessionkey);
 }