pub fn encode(bytes: &[u8]) -> StringExpand description
Write bytes as rows, one string with no separators. Grouping for the eye is the caller’s, since it does not take part in the encoding.
Four bytes are seven characters of data, the last padded with zero bits, and four of parity:
use rite_model::paper32;
assert_eq!(paper32::encode(b"rite"), "E9MQ8S8PH8B");