#base64 #decode-base64 #encode-decode

base64-easy

encode and decode use base64

2 releases

0.1.1 Mar 17, 2019
0.1.0 Mar 17, 2019

#1515 in Encoding

MIT/Apache

5KB
100 lines

base64-easy

BASE64 implement in Rust.

usage

as lib

extern crate base64_easy;
use base64_easy::{encode, decode};

let a = encode("abc".to_string());

let b = decode("YWJj".to_string());

as binary


# build
cargo build -- example simple

# encode   
$ ./simple e abc77                                                                                                    
YWJjNzc=

# decode   
$ ./simple d YWJjNzc=                                                                                           
abc77

lib.rs:

Usage:

extern crate base64_easy;
use base64_easy::{encode, decode};

let a = encode("abc".to_string());

let b = decode("YWJj".to_string());

No runtime deps