Function: url-digest-auth-create-key

url-digest-auth-create-key is a byte-compiled function defined in url-auth.el.gz.

Signature

(url-digest-auth-create-key USERNAME PASSWORD REALM METHOD URI)

Documentation

Create a key for digest authentication method.

The USERNAME and PASSWORD are the credentials for REALM and are used in making a hashed value named HA1. The HTTP METHOD and URI makes a second hashed value HA2. These hashes are used in making the authentication key that can be stored without saving the password in plain text. The return value is a list (HA1 HA2).

For backward compatibility, URI is allowed to be a URL cl-struct object.

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-auth.el.gz
(defun url-digest-auth-create-key (username password realm method uri)
  "Create a key for digest authentication method.
The USERNAME and PASSWORD are the credentials for REALM and are
used in making a hashed value named HA1.  The HTTP METHOD and URI
makes a second hashed value HA2.  These hashes are used in making
the authentication key that can be stored without saving the
password in plain text.  The return value is a list (HA1 HA2).

For backward compatibility, URI is allowed to be a URL cl-struct
object."
  (and username password realm
       (list (url-digest-auth-make-ha1 username realm password)
             (url-digest-auth-make-ha2 method (cond ((stringp uri) uri)
                                                    (t (url-filename uri)))))))