Skip to content

Instantly share code, notes, and snippets.

extern crate crypto;
use crypto::bcrypt::bcrypt;
static CRYPT_B64: &'static str = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
fn crypt_decode(enc: &str, decbuf: &mut [u8]) -> Option<()> {
let mut cbuild = 0u8;
let mut cpos = 0;
let mut dec_idx = 0;
// Mutability exercise.
#[cfg(not(second))]
fn do_frob() {
let mut aa = MySource::new();
{
let mut aaw = aa.get_sink();
let ff = first::Outer::new();
ff.frob(&mut *aaw);
aaw.flush();