Type Alias short_crypt::Cipher

source ·
pub type Cipher = (u8, Vec<u8>);
Expand description

A tuple. The first u8 value is the base which only takes 4 bits. The second Vec<u8> value is the body whose size is equal to the plaintext. You can use your own algorithms to combine them together, or just use encrypt_to_url_component or encrypt_to_qr_code_alphanumeric to output them as a random-like string.