You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are variety of tools that allows calculate hash digests.
15
-
16
-
However tools like `md5sum`, `sha1sum`, `b2sum`, `sha224sum` and others offer only file-based checksums.
14
+
Various tools like `md5sum`, `sha1sum`, `b2sum`, `sha224sum`, etc., allow users to calculate file-based hash digests. However, these tools focus on file-level checksums, making it cumbersome to handle scenarios like calculating digests on-the-fly while writing data. This motivated the creation of `chksum` to offer a simplified interface for such use cases.
17
15
18
16
```shell
19
17
find dir/ -type f | sort | xargs cat | sha224sum
20
18
```
21
19
22
-
Instead you can just use `chksum`with preffered hash algorithm.
20
+
With `chksum`, you can achieve the same result with your preferred hash algorithm:
23
21
24
22
```sh
25
23
chksum sha2-224 dir/
26
24
```
27
25
28
-
## Features
26
+
## Key Features
29
27
30
-
- Written in pure Rust
31
-
- No unsafe code
32
-
- Configurable via Cargo features
33
-
- Multithread
28
+
* Implemented in pure Rust
29
+
* No unsafe code
30
+
* Configurable via Cargo features
31
+
* Multithreaded
34
32
35
33
## Installation
36
34
37
-
Use [`cargo install`](https://doc.rust-lang.org/cargo/commands/cargo-install.html) to install `chksum` binary in `$HOME/.cargo/bin` directory.
35
+
Install the `chksum` binary using [`cargo install`](https://doc.rust-lang.org/cargo/commands/cargo-install.html):
Check [`chksum`](https://crates.io/crates/chksum) crate to see the library that allows you to calculate digests of files and directories with easy-to-use interface.
106
+
Check out the [`chksum`](https://crates.io/crates/chksum) crate to see the library that allows you to calculate digests of files and directories with an easy-to-use interface.
105
107
106
-
## Hash algorithms
108
+
## Hash Algorithms
107
109
108
-
Implemented hash algorithms:
110
+
This binary provides implementations for the following hash algorithms:
109
111
110
112
* MD5 - [RFC 1321: The MD5 Message-Digest Algorithm](https://tools.ietf.org/html/rfc1321)
0 commit comments