Skip to content

Instantly share code, notes, and snippets.

@coreyhaines
Created March 16, 2011 16:04
Show Gist options
  • Save coreyhaines/872734 to your computer and use it in GitHub Desktop.
Save coreyhaines/872734 to your computer and use it in GitHub Desktop.
Use base32 encoding
to_encode = (rand(4096)+2048)*Time.new.to_i*<put a big number here, potentially secret, probably can figure it out easily enough>
Base32::Crockford.encode(to_encode, :split => 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment