Skip to content

Commit

Permalink
shasum: added page
Browse files Browse the repository at this point in the history
  • Loading branch information
alpreu authored and alpreu committed Oct 4, 2017
1 parent 2ec20d4 commit 377c0e1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pages/linux/shasum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# shasum

> Calculate or check cryptographic SHA checksums.
- Calculate the SHA1 checksum for a file:

`shasum {{filename}}`

- Calculate the SHA256 checksum for a file:

`shasum -a 256 {{filename}}`

- Calculate the SHA512 checksum for multiple files:

`shasum -a 512 {{filename1}} {{filename2}}`

- Check a file with a list of sums against the directorys files:

`shasum -c {{list_file}}`

- Calculate the SHA1 checksum from stdin:

`{{somecommand}} | shasum`
23 changes: 23 additions & 0 deletions pages/osx/shasum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# shasum

> Calculate or check cryptographic SHA checksums.
- Calculate the SHA1 checksum for a file:

`shasum {{filename}}`

- Calculate the SHA256 checksum for a file:

`shasum -a 256 {{filename}}`

- Calculate the SHA512 checksum for multiple files:

`shasum -a 512 {{filename1}} {{filename2}}`

- Check a file with a list of sums against the directorys files:

`shasum -c {{list_file}}`

- Calculate the SHA1 checksum from stdin:

`{{somecommand}} | shasum`

0 comments on commit 377c0e1

Please sign in to comment.