base-encode
Encode and decode data from and to any base from 2 to 256.
use ;
let data = vec!;
encode // [1, 0, 0, 0, 0]
// leading zeros are preserved
decode // [0, 0, 1, 0]
Convert from and to strings
from_str.unwrap // [0xff]
to_string.unwrap // "XOXO"