b2

Crates.iob2
lib.rsb2
version0.1.0
sourcesrc
created_at2016-04-18 16:03:14.708103
updated_at2016-04-18 16:03:14.708103
descriptionA very simple program to xor images together.
homepage
repositoryhttps://github.com/azdle/b2
max_upload_size
id4784
size4,246
Patrick Barrett (azdle)

documentation

README

B2

Build Status Crates.io Link

Set your pins to 'B2'.

Installing

The easiest way to use b2 is to install it through cargo.

$ cargo install b2

Usage

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
Commit count: 2

cargo fmt