Expand description
A G60 format (de)encoder for rust.
§Examples
let origin = "Hello, world!";
let encoded = "Gt4CGFiHehzRzjCF16";
assert_eq!(g60::encode(origin.as_bytes()), encoded);
assert_eq!(origin.as_bytes(), g60::decode(encoded).unwrap());
Modules§
Functions§
- Decodes a G60 encoded string.
- Decodes a G60 encoded string. The result is placed into
slice
and returns the number of elements written. - Decodes a G60 encoded string. The result is written in
writer
. - Encodes a list of bytes into a G60 encoding format.
- Encodes a list of bytes into a G60 encoding format. The result is placed into
slice
and returns the number of elements written. - Encodes a list of bytes into a G60 encoding format. The result is written in
writer
. - Verifies
content
is a valid G60 encoded string.