Skip to content

Commit

Permalink
Add sha2 and sha3 hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
harmless-tech committed Mar 1, 2024
1 parent d50e287 commit 5e641ca
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 34 deletions.
137 changes: 115 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ include = [
[dependencies]
anyhow = "1.0.80"
flate2 = "1.0.28"
hex = "0.4.3"
pico-args = { version = "0.5.0", features = ["eq-separator"] }
rc-zip-sync = { version = "4.0.0", default-features = false, features = ["deflate", "deflate64"] }
sha2 = "0.10.8"
sha3 = "0.10.8"
tar = "0.4.40"

[profile.release]
Expand All @@ -49,7 +52,6 @@ codegen-units = 16
cargo = "deny"
correctness = "deny"
complexity = "deny"
enum_glob_use = "deny"
nursery = "deny"
pedantic = "deny"
perf = "deny"
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ A basic tar/zip extraction program.
- `-C` for directory to extract to.
- `-z` for gzip.
- `--zip` for zip. (none, deflate, deflate64)
- `--sha256` for sha256 hash.
- `--sha512` for sha512 hash.
- `--sha3_256` for sha3_256 hash.
- `--sha3_512` for sha3_512 hash.

First positional arg is the file to extract.
First positional arg is the file to extract/hash.

### Examples

Expand Down
Loading

0 comments on commit 5e641ca

Please sign in to comment.