]> git.eshelyaron.com Git - emacs.git/commitdiff
Recommend secure-hash in md5 docstring
authorStefan Kangas <stefankangas@gmail.com>
Fri, 28 Feb 2025 04:21:48 +0000 (05:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 20:51:13 +0000 (21:51 +0100)
* src/fns.c (Fmd5): Repeat explanation from manual about md5 being
"semi-obsolete", and recommend using secure-hash instead.

(cherry picked from commit 6f5c322f5974786290b1b3e68b5a0685ddec3410)

src/fns.c

index 4e00ad71c2e9351a5805b9e39fa0f5a8ee442b9a..d289af22cd8f376178c0d7ce5948ca7b6eb96a6a 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -6374,6 +6374,11 @@ command `prefer-coding-system') is used.
 If NOERROR is non-nil, silently assume the `raw-text' coding if the
 guesswork fails.  Normally, an error is signaled in such case.
 
+This function is semi-obsolete, since for most purposes it is equivalent
+to calling `secure-hash` with the symbol `md5' as the ALGORITHM
+argument.  The OBJECT, START and END arguments have the same meanings as
+in `secure-hash'.
+
 Note that MD5 is not collision resistant and should not be used for
 anything security-related.  See `secure-hash' for alternatives.  */)
   (Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp_Object coding_system, Lisp_Object noerror)