My full list of ambiguous letters, from https://gajus.com/blog/avoiding-visually-ambiguous-character...
- O / 0 - I / l / 1 / 7 - 5 / S - 2 / Z - 8 / B - 6 / G - 9 / q / g
- O / 0 - I / l / 1 / 7 - 5 / S - 2 / Z - 8 / B - 6 / G - 9 / q / g
$ cat passgen.sh
#!/bin/sh
export LC_ALL=C
printf "%.16s\n" "$(/usr/bin/openssl rand -base64 32 | /usr/bin/tr -d 'lIOSBGZ')"
This way if it looks like a number then it is. I don't usually mess up q/g and u/v with my fonts but its easy enough to ban more characters.?