summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-08-24 21:22:26 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-08-24 21:22:26 +0000
commit89a73b7f8991404107e4b22678294c615dc113b2 (patch)
tree33101d7b9053a2193d9814d6938126d329eda6eb /bin
parentca2f1d294c5604ea53af0e9ae2cce22f57a0c873 (diff)
Note that collisions have been found for MD5, so SHA-1 is preferred.
Also fix the reference to RFC 1321, which describes MD5 alone (not MD2 or MD4). ok jmc@, millert@
Diffstat (limited to 'bin')
-rw-r--r--bin/md5/md5.124
1 files changed, 19 insertions, 5 deletions
diff --git a/bin/md5/md5.1 b/bin/md5/md5.1
index de172c8b0ab..a51acb8b3c6 100644
--- a/bin/md5/md5.1
+++ b/bin/md5/md5.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: md5.1,v 1.19 2004/05/04 18:32:51 jmc Exp $
+.\" $OpenBSD: md5.1,v 1.20 2004/08/24 21:22:25 tom Exp $
.\"
.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@@ -36,9 +36,14 @@
.Nm
takes as input a message of arbitrary length and produces
as output a 128-bit "fingerprint" or "message digest" of the input.
-It is conjectured that it is computationally infeasible to produce
-two messages having the same message digest, or to produce any
+It was conjectured that it would be computationally infeasible to produce
+two messages having the same message digest (a collision), or to produce any
message having a given prespecified target message digest.
+However, collisions have now been produced for
+.Em MD5 ,
+so the use of other message digest functions, such as
+.Xr sha1 1 ,
+is now preferred.
.Pp
The
.Em MD5
@@ -81,5 +86,14 @@ options are processed.
.Xr cksum 1 ,
.Xr rmd160 1 ,
.Xr sha1 1
-.Pp
-RFC 1321 describes in detail the MD2, MD4, and MD5 message-digest algorithms.
+.Rs
+.%A R. Rivest
+.%T The MD5 Message-Digest Algorithm
+.%O RFC 1321
+.Re
+.Sh BUGS
+Since collisions have been found for
+.Em MD5 ,
+the use of
+.Xr sha1 1
+is recommended instead.