logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

sha1sum.1 (1281B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd October 31, 2024
  5. .Dt SHA1SUM 1
  6. .Os
  7. .Sh NAME
  8. .Nm sha1sum
  9. .Nd write and verify sha1 checksums
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl cq
  13. .Op Ar file...
  14. .Sh DESCRIPTION
  15. .Nm
  16. reads each
  17. .Ar file ,
  18. or standard input if none were specified,
  19. and prints each of their SHA1 checksum.
  20. .Sh OPTIONS
  21. .Bl -tag -width _c
  22. .It Fl c
  23. Verify checksums contained in each
  24. .Ar file .
  25. Currently supported format being checksum, whitespace, an optional asterisk
  26. .Ql *
  27. and finally a filename.
  28. .It Fl q
  29. Quiet, do not print 'OK'
  30. .El
  31. .Sh EXIT STATUS
  32. .Ex -std
  33. .Sh EXAMPLES
  34. Check tarballs in current directory against the
  35. .Pa sha1sums.txt
  36. digest and ignore the rest of it:
  37. .Dl printf %s\en *.tar* | grep -f - sha1sums.txt | sha1sum -c -
  38. .Sh SEE ALSO
  39. .Xr sha256sum 1
  40. .Sh STANDARDS
  41. SHA1 is standardized both in FIPS 180-4 and RFC 3174.
  42. .Sh AUTHORS
  43. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me
  44. .Sh SECURITY CONSIDERATIONS
  45. Due to it's known collisions SHA-1 is deprecated, the
  46. .Nm
  47. utility is only provided in the interest of compatibility and
  48. verification of legacy checksums.
  49. For non-legacy usage,
  50. .Xr sha256sum 1
  51. should be used instead.