Function: ntlm-md4hash

ntlm-md4hash is a byte-compiled function defined in ntlm.el.gz.

Signature

(ntlm-md4hash PASSWD)

Documentation

Return 16 bytes MD4 hash of string PASSWD after converting it to Unicode.

PASSWD is truncated to 128 bytes if longer.

Source Code

;; Defined in /usr/src/emacs/lisp/net/ntlm.el.gz
(defun ntlm-md4hash (passwd)
  "Return 16 bytes MD4 hash of string PASSWD after converting it to Unicode.
PASSWD is truncated to 128 bytes if longer."
  (let* ((len (min (length passwd) 128)) ;Pwd can't be > than 128 characters.
         ;; Password must be converted to NT Unicode.
         (wpwd (ntlm-ascii2unicode passwd len)))
    (md4 wpwd
         ;; Calculate length in bytes.
         (* len 2))))