mathdown icon indicating copy to clipboard operation
mathdown copied to clipboard

print safe URLs: Avoid similar chars in doc ids

Open cben opened this issue 10 years ago • 2 comments

Should avoid ambiguity of lowercase L, capital i and 1, and 0 / capital O. Switch from base 62 to smaller set e.g. http://tantek.pbworks.com/w/page/19402946/NewBase60? Not sure I like the _.

  • [ ] test existing docs for ambiguity collisions
  • [ ] restrict generated set
  • [ ] decide on supporting alternate spelling e.g. O -> 0?

cben avatar Jan 19 '15 19:01 cben

https://en.wikipedia.org/wiki/Base58 - like NewBase60 but also omit 0 and _.

cben avatar Jan 19 '15 20:01 cben

implementation: https://github.com/ai/nanoid looks nice (can work with any alphabet)

cben avatar Aug 08 '17 08:08 cben