Created
March 16, 2011 16:04
-
-
Save coreyhaines/872734 to your computer and use it in GitHub Desktop.
Use base32 encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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