Crate g60

Source
Expand description

A G60 format (de)encoder for rust.

Docs

§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§

errors

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.