logo

utils-std

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

sha1sum.1 (1240B)


  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 2024-08-15
  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 c
  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. .El
  29. .Sh EXIT STATUS
  30. .Ex -std
  31. .Sh EXAMPLES
  32. Check tarballs in current directory against the
  33. .Pa sha1sums.txt
  34. digest and ignore the rest of it:
  35. .Dl printf %s\en *.tar* | grep -f - sha1sums.txt | sha1sum -c -
  36. .Sh SEE ALSO
  37. .Xr sha256sum 1
  38. .Sh STANDARDS
  39. SHA1 is standardized both in FIPS 180-4 and RFC 3174.
  40. .Sh AUTHORS
  41. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me
  42. .Sh SECURITY CONSIDERATIONS
  43. Due to it's known collisions SHA-1 is deprecated, the
  44. .Nm
  45. utility is only provided in the interest of compatibility and
  46. verification of legacy checksums.
  47. For non-legacy usage,
  48. .Xr sha256sum 1
  49. should be used instead.