md5sum.1 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .\" Hey, Emacs! This is an -*- nroff -*- source file.
  2. .TH MD5SUM 1 "29th November 1995" "Lankester et al" "Debian GNU/Linux"
  3. .SH NAME
  4. md5sum \- generates or checks MD5 message digests
  5. .SH SYNOPSIS
  6. .B md5sum
  7. [-bv] [-c [file]] | [file...]
  8. .SH DESCRIPTION
  9. .B md5sum
  10. generates or checks MD5 checksums. The algorithm to generate the
  11. checksum is reasonably fast and strong enough for most cases. Exact
  12. specification of the algorithm is in
  13. .I RFC 1321.
  14. Normally
  15. .B md5sum
  16. generates checksums of all files given to it as a parameter and prints
  17. the checksums followed by the filenames. If, however,
  18. .B -c
  19. is specified, only one filename parameter is allowed. This file should
  20. contain checksums and filenames to which these checksums refer to, and
  21. the files listed in that file are checked against the checksums listed
  22. there. See option
  23. .B -c
  24. for more information.
  25. .SS OPTIONS
  26. .TP
  27. .B -b
  28. Use binary mode. In unix environment, only difference between this and
  29. the normal mode is an asterix preceding the filename in the output.
  30. .TP
  31. .B -c
  32. Check md5sum of all files listed in
  33. .I file
  34. against the checksum listed in the same file. The actual format of that
  35. file is the same as output of
  36. .B md5sum.
  37. That is, each line in the file describes a file. A line looks like:
  38. .B <MD5 checksum> <filename>
  39. So, for example, if a file was created and its message digest calculated
  40. like so:
  41. .B echo foo > md5-test-file; md5sum md5-test-file
  42. .B md5sum
  43. would report:
  44. .B d3b07384d113edec49eaa6238ad5ff00\ md5-test-file
  45. .TP
  46. .B -v
  47. Be more verbose. Print filenames when checking (with -c).
  48. .SH BUGS
  49. The related MD4 message digest algorithm was broken in October 1995.
  50. MD5 isn't looking as secure as it used to.
  51. This manpage is not quite accurate and has formatting inconsistent
  52. with other manpages.
  53. .B md5sum
  54. does not accept standard options like
  55. .BR --help .
  56. .SH AUTHOR
  57. .B md5sum
  58. was originally written by Branko Lankester, and modified afterwards by
  59. Colin Plumb and Ian Jackson (ijackson@gnu.ai.mit.edu). Manual page was
  60. added by Juho Vuori (javuori@cc.helsinki.fi)