Created
July 14, 2016 01:09
-
-
Save dlwhitehurst/cb6abcd6337e1cf0ca5ef49ebc3f7633 to your computer and use it in GitHub Desktop.
Freakin' overkill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! # 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