~heapunderflow/streaming-xor

667a8b378c698f76d1e71897535306b6db184755 — HeapUnderflow 4 years ago fdd2621
Fix typos across all files
4 files changed, 16 insertions(+), 16 deletions(-)

M Cargo.lock
M Cargo.toml
M README.md
M src/main.rs
M Cargo.lock => Cargo.lock +1 -1
@@ 48,7 48,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "sxor"
version = "1.0.0"
version = "1.0.1"
dependencies = [
 "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
]

M Cargo.toml => Cargo.toml +1 -1
@@ 1,6 1,6 @@
[package]
name = "sxor"
version = "1.0.0"
version = "1.0.1"
authors = ["HeapUnderflow <heapunderflow@outlook.com>"]
edition = "2018"


M README.md => README.md +8 -8
@@ 3,24 3,24 @@
A Cli tool to satisfy your xor'ing needs.

```text
sxor 1.0.0
sxor 1.0.1
HeapUnderflow <heapunderflow@outlook.com>
xor all bytes from stdin/a file with the given key
xor all bytes from stdin or a file with the given key

USAGE:
    sxor [OPTIONS] [FILE]

OPTIONS:
    -b, --bufsize <buf-size>    Use a buffer of X bytes, instead of the default 4KiB
    -v, --verbose               print debug information to stderr
    -v, --verbose               Print debug information to stderr
    -h, --help                  Prints help information
    -k, --key <KEY>             the key to be used. for multiple bytes, separate them with either spaces or commas.
                                bytes are in hex format [default: 0xFF]
    -k, --key <KEY>             The key to be used. for multiple bytes, separate them with either spaces or commas.
                                bytes are in hex [default: 0xFF]
    -V, --version               Prints version information
    -o, --out <write-file>      write the xor'd bytes to file instead of stdout
    -o, --out <write-file>      Write the xor'd bytes to file instead of stdout, `-` works as a alias for stdout

ARGS:
    <FILE>    the file to read from, defaults to stdin
    <FILE>    The file to read from, defaults to stdin, `-` works as a alias for stdin
```

## Example


@@ 37,4 37,4 @@ eof reached
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 97 9b 93 92 90 de 88 91 | 8d 92 9b f4             |××××××××|××××    |
+--------+-------------------------+-------------------------+--------+--------+
```
\ No newline at end of file
```

M src/main.rs => src/main.rs +6 -6
@@ 17,7 17,7 @@ fn realmain() -> Result<(), i32> {
	let matches = App::new(env!("CARGO_PKG_NAME"))
		.author(env!("CARGO_PKG_AUTHORS"))
		.version(env!("CARGO_PKG_VERSION"))
		.about("xor all bytes from stdin/a file with the given key")
		.about("xor all bytes from stdin or a file with the given key")
		.settings(&[
			AppSettings::ColoredHelp,
			AppSettings::ColorAuto,


@@ 32,8 32,8 @@ fn realmain() -> Result<(), i32> {
				.value_name("KEY")
				.takes_value(true)
				.help(
					"the key to be used. for multiple bytes, separate them with either spaces or \
					 commas. bytes are in hex format",
					"The key to be used. for multiple bytes, separate them with either spaces or \
					 commas. bytes are in hex",
				),
		)
		.arg(


@@ 41,7 41,7 @@ fn realmain() -> Result<(), i32> {
				.required(false)
				.index(1)
				.value_name("FILE")
				.help("the file to read from, defaults to stdin"),
				.help("The file to read from, defaults to stdin, `-` works as a alias for stdin"),
		)
		.arg(
			Arg::with_name("debug")


@@ 50,7 50,7 @@ fn realmain() -> Result<(), i32> {
				.multiple(true)
				.short("v")
				.long("verbose")
				.help("print debug information to stderr"),
				.help("Print debug information to stderr"),
		)
		.arg(
			Arg::with_name("write-file")


@@ 58,7 58,7 @@ fn realmain() -> Result<(), i32> {
				.takes_value(true)
				.short("o")
				.long("out")
				.help("write the xor'd bytes to file instead of stdout"),
				.help("Write the xor'd bytes to file instead of stdout, `-` works as a alias for stdout"),
		)
		.arg(
			Arg::with_name("buf-size")