('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a
18 digits is enough to last the next 300 years
18
9 10 11 12 13 14 15 16 17
# File 'lib/cornflake.rb', line 9 def self.encode(numeric) s = '' while numeric > 0 s << Base62::SIXTYTWO[numeric.modulo(62)] numeric /= 62 end s.reverse! s.rjust(PADDING, "0") end