Crates.io | xorfiles |
lib.rs | xorfiles |
version | 0.1.1 |
source | src |
created_at | 2020-02-28 23:09:51.965329 |
updated_at | 2020-02-28 23:18:48.435194 |
description | A utility to XOR two files on the command line |
homepage | |
repository | https://github.com/sciguy16/xorfiles |
max_upload_size | |
id | 213670 |
size | 48,380 |
A command-line utility to XOR two files. Useful for certain types of CTF challenge.
./xorfiles FILE1 FILE2
xorfiles FILE1 FILE2
xorfiles FILE1 < FILE2
git clone https://github.com/sciguy16/xorfiles
cargo build --release
cargo run --release -- -h
cargo install xorfiles
Benchmarks run with a 1 GB file XORed with itself, generated with
dd if=/dev/zero of=big_file bs=1M count=1000
. The Rust version was
tested in two operating modes: XOR two files together and one file with
stdin.
The following command was used to measure the throughput:
<implementation> big_file big_file | pv > /dev/null
Implementation | Approx. throughput |
---|---|
Rust (files) | 6.5 MiB/s |
Rust (stdin) | 6.4 MiB/s |
Ruby | 2.45 MiB/s |
Python | 4.7 MiB/s |