Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Base32

RFC 4648 and Crockford, demoing the p/moul/x/daily/base32 library.

input RFC 4648 Crockford
(empty) `` ``
f MY====== CR
fo MZXQ==== CSQG
foo MZXW6=== CSQPY
foob MZXW6YQ= CSQPYRG
fooba MZXW6YTB CSQPYRK1
foobar MZXW6YTBOI====== CSQPYRK1E8

Crockford forgives

hello encodes to D1JPRV3F, and all of these decode back to it:

  • D1JPRV3Fhello
  • d1jprv3fhello
  • D1-JPRV3Fhello

Crockford folds case, reads I/L as 1 and O as 0, and ignores hyphens — so an identifier survives being read aloud and typed back. U is left out of the alphabet on purpose.