Function z32::encode

source ·
pub fn encode(buf: &[u8]) -> String
Expand description

Encode bytes using zbase32.

§Examples

use z32;

let data = "The quick brown fox jumps over the lazy dog. 👀";
assert_eq!(z32::encode(data.as_bytes()),
           "ktwgkedtqiwsg43ycj3g675qrbug66bypj4s4hdurbzzc3m1rb4go3jyptozw6jyctzsqmty6nx3dyy");