News for hackers. Stuff that matters.
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).