News for hackers. Stuff that matters.
Re:You'll regret using natural keys by biztos on Wednesday June 05, 2024 @06:40AM (#40583415)
I think that 0 and 1 are likely to cause problems when customers end up reading their "user ID" back to your employees in Customer Support Country over the phone.

"It's one-three-oh-dee-ee-el. Yes, I'm sure, EL as in elephant."

Re:You'll regret using natural keys by gvx on Wednesday June 05, 2024 @07:17AM (#40583593)
Anything that needs to be read over the phone should probably be written out using something like the NATO phonetic alphabet, split into smaller chunks if needed: "The code? It's kilo eight niner; one three mike; delta echo lima."
Re:You'll regret using natural keys by 8372049 on Wednesday June 05, 2024 @07:26AM (#40583644)
Having come from a military background where using that is second nature, I'm constantly surprised how rarely I meet civilians who understand it effortlessly. When picking up a package I say "the code is Oscar Foxtrot three-fife" and you see the person processing for a long time to extract the first letter of the word. I've started saying "OF, that's Oscar Foxtrot, 3-5" to help them out.

In other words, asking a customer/consumer to be able to recite something in phonetics is not realistic in most cases.

Fortunately the code already takes this into consideration and removes ambiguous characters.

Re:You'll regret using natural keys by hprotagonist on Wednesday June 05, 2024 @07:41AM (#40583731)
digikey phone personnel all speak NATO. it’s wonderful.
Re:You'll regret using natural keys by hobs on Wednesday June 05, 2024 @08:25AM (#40584019)
First thing I drilled into Apple phone support folks.
Re:You'll regret using natural keys by mannykannot on Wednesday June 05, 2024 @08:44AM (#40584156)
My experience in the USA is that if I don't include the phrase "as in" (as in "X as in Xray") most people still will not realize what I am doing (the alternative "for" can be confused with the digit.)

I also ask them to check my readback of key information they have given me and vice-versa; usually that works well.

Re:You'll regret using natural keys by gbacon on Friday June 07, 2024 @01:37PM (#40610905)
*tree :-)
Re:You'll regret using natural keys by jagged-chisel on Wednesday June 05, 2024 @07:00AM (#40583512)
One can convert those to the correct characters. Since “oh” and “el” are excluded from the alphabetic range, they become “zero” and “one” - deciding whether that is done in software for the help desk, or in the brain of the help desk staff is left as an exercise to management.
Re:You'll regret using natural keys by smaudet on Wednesday June 05, 2024 @07:03AM (#40583527)
I wonder if Unicode could be used to alter the characters such that these mistakes would be less possible, e.g. using ⓪.
Re:You'll regret using natural keys by fhars on Wednesday June 05, 2024 @08:12AM (#40583920)
That is "AT", isn't it?

(No, it isn't, if you look closely enough.)

Re:You'll regret using natural keys by smaudet on Wednesday June 05, 2024 @09:49AM (#40584729)
Yeah...what I'd really like to do would be to give a character a "natural" background color, e.g.

Then its simple for support to say "red is one, green is ell". But you can't just add a color to a character, because copy paste/rich formatting don't work everywhere, or even transfer well...

Alternatively, if you use ⓪ and ⒈ it matters less if the user says "at" or "zero", and more that they didn't say "oh" or "one".

Re:You'll regret using natural keys by Piskvorrr on Wednesday June 05, 2024 @01:03PM (#40587474)
It's obviously a �. Or perhaps a □ . Maybe an ¾, on odd Wednesdays?

(Unicode has its strengths. Making up replacement characters isn't one.)

Re:You'll regret using natural keys by codr7 on Wednesday June 05, 2024 @02:14PM (#40588366)
I happen to know that the biggest ski resort reservation system in Scandinavia contains a function called MaybeOnATuesday(), but to my knowledge it's never called.
Re:You'll regret using natural keys by WorldMaker on Wednesday June 05, 2024 @01:40PM (#40587938)
If you are trying for URL safe, Unicode is problematic because of Punycode conversions and differing browser behavior with Unicode URLs. (Some browsers always show Unicode as Unicode in URLs. Some browsers always show Unicode as Punycode in URLs. Some browsers switch between the two based on a huge number of variables such as gTLD, user preference, phase of the moon, etc.)
Re:You'll regret using natural keys by 8372049 on Wednesday June 05, 2024 @07:21AM (#40583615)
i, L and o are left out of the alphabet in the snippet, so there's not really any ambiguity.
Re:You'll regret using natural keys by jgalt212 on Wednesday June 05, 2024 @07:35AM (#40583699)
Or just drop the L and O, like CUSIP does.
Re:You'll regret using natural keys by kstenerud on Wednesday June 05, 2024 @08:19AM (#40583974)
I developed safe32 for this reason.

https://github.com/kstenerud/safe-encoding/blob/master/safe3...

Notably, confusable characters are interchangeable when being ingested (although a machine encoder MUST always produce canonical output). https://github.com/kstenerud/safe-encoding/blob/master/safe3...

So a user can confuse 1 for l, 0 for o, I for l, u for v, uppercase, lowercase etc, or the agent can say any of those over the phone, and it won't matter.

Re:You'll regret using natural keys by what on Wednesday June 05, 2024 @12:15PM (#40586780)
Isn’t this just crockford encoding?
Re:You'll regret using natural keys by kstenerud on Wednesday June 05, 2024 @01:20PM (#40587710)
Every base-32 style encoding is Crockford at the core. The difference is in the alphabet, and also whether it requires padding or not (safe32 does not).

Crockford also incorporates error correction, which is unnecessary in modern systems since the underlying protocols do that already.

Re:You'll regret using natural keys by vanderZwan on Wednesday June 05, 2024 @08:54AM (#40584225)
Oh that looks well-thought out and is probably the sanest way to solve this particular problem!

It's obvious why the safe64/safe80/safe85 cannot do this, but is there a reason why the safe16 version doesn't have the same features?

Re:You'll regret using natural keys by kstenerud on Wednesday June 05, 2024 @09:06AM (#40584345)
Oh whoops that's an oversight! I'll fix that up tonight.
Re:You'll regret using natural keys by ss64 on Wednesday June 05, 2024 @01:07PM (#40587536)
Another approach is using base31 with all vowels removed https://ss64.com/ps/syntax-base31.html
Re:You'll regret using natural keys by kstenerud on Wednesday June 05, 2024 @01:18PM (#40587671)
You still have the problem of 1 vs l. And also it doesn't support user-error (reading 0 as O, or reading V as U).
Re:You'll regret using natural keys by inopinatus on Wednesday June 05, 2024 @08:30AM (#40584064)
My favourite ambiguous readback is to say "M for Movember".

I have a note from a few years ago that 367CDFGHJKMNPRTWX may be a sufficiently unambiguous alphabet. Drop the one you like the least (probably N) to obtain a faux hex encoding.