Skip to content

Instantly share code, notes, and snippets.

View ayourtch's full-sized avatar
💭
hacking some Rust

Andrew Yourtchenko ayourtch

💭
hacking some Rust
View GitHub Profile
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;