Crates.io | b2 |
lib.rs | b2 |
version | 0.1.0 |
source | src |
created_at | 2016-04-18 16:03:14.708103 |
updated_at | 2016-04-18 16:03:14.708103 |
description | A very simple program to xor images together. |
homepage | |
repository | https://github.com/azdle/b2 |
max_upload_size | |
id | 4784 |
size | 4,246 |
Set your pins to 'B2'.
The easiest way to use b2 is to install it through cargo.
$ cargo install b2
B2 - Set your pins to B2
A tool to XOR images together.
Usage:
b2 makenoise <file> <outfile>
b2 xor <file> <file2> <outfile>
b2 (-h | --help)
b2 (-v | --version)
Options:
-h --help Show this screen.
-v --version Show version.
Example
Make a noise image and encrypt your original image with that noise:
$ b2 makenoise sonofa.jpg noise.png
$ b2 xor sonofa.jpg noise.png encrypted.png
You now have an 'encrypted' picture, encrypted.png
. To 'decrypt', just xor the encrypted image with the noise again:
$ b2 xor noise.png encrypted.png decrypted.png