logo

utils-std

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

sha256sum.1 (983B)


  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 SHA256SUM 1
  6. .Os
  7. .Sh NAME
  8. .Nm sha256sum
  9. .Nd write and verify sha256 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 SHA256 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 sha256sums.txt
  34. digest and ignore the rest of it:
  35. .Dl printf %s\en *.tar* | grep -f - sha256sums.txt | sha256sum -c -
  36. .Sh STANDARDS
  37. SHA256 is standardized both in FIPS 180-4 and RFC 6234.
  38. .Sh AUTHORS
  39. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me