Function: md5-binary

md5-binary is a byte-compiled function defined in hmac-md5.el.gz.

Signature

(md5-binary STRING)

Documentation

Return the MD5 of STRING in binary form.

Source Code

;; Defined in /usr/src/emacs/lisp/net/hmac-md5.el.gz
(require 'md5)				; expects (md5 STRING)

(defun md5-binary (string)
  "Return the MD5 of STRING in binary form."
  (if (condition-case nil
	  ;; `md5' of v21 takes 4th arg CODING (and 5th arg NOERROR).
	  (md5 "" nil nil 'binary)	; => "d41d8cd98f00b204e9800998ecf8427e"
	(wrong-number-of-arguments nil))
      (decode-hex-string (md5 string nil nil 'binary))
    (decode-hex-string (md5 string))))