3 ms·
I understand their reasoning, but base62 is obnoxious to deal with. I'd prefer base32. 1) case insensitive, 2) works better with OCR (assuming a sensible varian
by pacaro 10y ago
I understand their reasoning, but base62 is obnoxious to deal with. I'd prefer base32. 1) case insensitive, 2) works better with OCR (assuming a sensible variant is chosen), and 3) can be processed with simple bit-shifts
- eximius 10y agoWhy on earth would OCR be a concern here? (genuine curiosity)
- xoa 10y agoSimply printing stuff out onto alkaline/archival paper and sticking it in a vault still remains in much of the world an important part of retention/preservation schemes and contracts (and in some jurisdictions/cases may even be a regulatory requirement). Properly stored quality paper can have a lifespan of 500-1000 years, can have some favorable tradeoffs in terms of reader future-proofing and upkeep vs purely digital storage, etc. No reason not to want to take advantage of signing/encryption just because it's paper, or be able to easily retain important messages in their native format. You could argue that this doesn't need to be part of a message format itself because it'd be perfectly possible to write an intermediation layer for print that simply translates arbitrary input to an OCR favorable output and back, and maybe that'd make sense anyway if there are other desirable choices for properties like parity unique to print/archival/OCR. Still, to the extent that a format base choice is arbitrary and makes no particular difference to the humans or computers involved since they'll be intermediating through software anyway, better OCR properties doesn't seem like an entirely unreasonable metric to consider as part of the design considerations if there isn't a compelling reason otherwise.
- snailmailman 10y agoIsn't that situation a good place to use QR codes? It might be a large code (im not sure the limitations of QR codes) but it would eliminate the need for OCR. Nobody is going to be decrypting it by hand so you don't really need letters that are human readable. The base62 form works well for posting online but for printing QR seems like a good format to me
- pacaro 10y agoSo QR codes are great as part of a designed workflow where the reading app is well understood. The challenge comes in more ad hoc scenarios. Also QR codes hit a certain practicality limit with size (2953 bytes to stay in spec) Perhaps a meta-point is that when you are trying to design a general purpose interchange format, there will always be scenarios that you didn't imagine. In this case I have raised OCR and (legitimately) many people's responses have been a rather polite WTF (although I did garner one downvote). Experience teaches us that formats will be used in unexpected ways.
- deleted 10y ago[deleted]
- matthewaveryusa 10y agoI don't see it either. I could see someone printing their backup key, and then scanning it back in to their system, but the data is authenticated so OCR flipping characters would be detected -- also if you're doing that you're better off using a QRcode with native ECC.
- pacaro 10y agoI freely admit that it's a stretch, but I'd rather scan/photograph a public key than try and copy it by hand (which base32 is also better at). And I won't put a USB device of unknown provenance into a device I use. So sometimes pictures and or printouts are a good way of sharing data. It also occurs to me that OCR implies a computer, but it could just as legitimately mean a human reading text
- bastawhiz 10y agoIf you're sharing this stuff optically, you'd almost certainly be better off with something like a big QR code. QR can be scanned at angles, has built-in error correction, and (depending on the font you're comparing it against) can probably pack in more bytes. OCR feels more like a hack than anything; you're using a human-readable format with an error-prone medium to communicate non-human-friendly data between two machines!
- zo1 10y agoQR codes are actually quite versatile. I've had success taking plenty of raw text, zipping it and storing the resulting bytes in a QR code.
- deleted 10y ago[deleted]
- ape4 10y agoI always print out my messages then OCR them for an airgap /s
- zo1 10y agoPrinted text is not the best way to transmit machine-readable data on physical media. You're better off using something a QR code, rather than printing out raw characters that you then have to OCR at consumption-time.