-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hyphens (
-) can be inserted into symbol strings. This can partition a string into manageable pieces, improving readability by helping to prevent confusion. Hyphens are ignored during decoding. An application may look for hyphens to assure symbol string correctness.
An application may append a check symbol to a symbol string. This check symbol can be used to detect wrong-symbol and transposed-symbol errors. This allows for detecting transmission and entry errors early and inexpensively.
The check symbol encodes the number modulo 37, 37 being the least prime number greater than 32. We introduce 5 additional symbols that are used only for encoding or decoding the check symbol.
The additional symbols were selected to not be confused with punctuation or with URL formatting.
0123456789ABCDEFGHJKMNPQRSTVWXYZ*~$=U
Have it ignore -, *, ~, $, =, U, and u in your inputs.