Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Remove ambiguous characters from tokens
Browse files Browse the repository at this point in the history
These are handled by humans, and occasionally humans use typefaces
that do not distinguish between certain characters very well.

This is the reason that I and Q are excluded from UK vehicle
registration plates.

Remove the characters zero, one, oh, eye and ell from tokens. Make
them all lowercase, because there's no good reason not to.
  • Loading branch information
alexmuller committed Apr 10, 2014
1 parent b352a8d commit a8f945f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate-token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# LC_CTYPE=C is specified for OS X, as otherwise tr will return
# an illegal byte sequence from assuming /dev/urandom is UTF-8

cat /dev/urandom | LC_CTYPE=C tr -cd 'a-zA-Z0-9' | head -c 64
cat /dev/urandom | LC_CTYPE=C tr -cd 'a-z0-9' | tr -d '01oil' | head -c 64

echo '' # Add a newline

0 comments on commit a8f945f

Please sign in to comment.