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§
- decode
- Decodes a G60 encoded string.
- decode_
in_ slice - Decodes a G60 encoded string.
The result is placed into
slice
and returns the number of elements written. - decode_
in_ writer - Decodes a G60 encoded string.
The result is written in
writer
. - encode
- Encodes a list of bytes into a G60 encoding format.
- encode_
in_ slice - Encodes a list of bytes into a G60 encoding format.
The result is placed into
slice
and returns the number of elements written. - encode_
in_ writer - Encodes a list of bytes into a G60 encoding format.
The result is written in
writer
. - verify
- Verifies
content
is a valid G60 encoded string.