Skip to content

Instantly share code, notes, and snippets.

@dlwhitehurst
Created July 14, 2016 01:09
Show Gist options
  • Save dlwhitehurst/cb6abcd6337e1cf0ca5ef49ebc3f7633 to your computer and use it in GitHub Desktop.
Save dlwhitehurst/cb6abcd6337e1cf0ca5ef49ebc3f7633 to your computer and use it in GitHub Desktop.
Freakin' overkill
//! # Examples
//!
//! ```
//! extern crate rustc_serialize;
//! extern crate cryptowise;
//! use cryptowise::set1::challenge2::xor;
//! use rustc_serialize::hex::ToHex;
//! let a = "1c0111001f010100061a024b53535009181c";
//! let b = "686974207468652062756c6c277320657965";
//! let result = xor(a,b);
//! assert_eq!("746865206b696420646f6e277420706c6179",result.to_hex());
//! ```
//!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment