Questions tagged [base62]

Base62 is a positional notation compression notably used (optionally) by Dean Edwards' packer JavaScript compressor.

Base62 is a positional notation compression notably used (optionally) by Dean Edwards' packer JavaScript compressor. Edwards points out that using the Base62 feature of packer is only necessary if you cannot for some reason use gzip compression.

33 questions
0
votes
1 answer

string to integer conversion omitting first character of charset

This is more of a general problem than a ruby specific one, I just happen to be doing it in ruby. I am trying to convert a string into an Integer/Long/Bigint, or whatever you want to call it, using a charset for example Base62 (0-9a-zA-Z). Problem…
brancz
  • 451
  • 5
  • 15
0
votes
1 answer

TypeError: 'int' object is not iterable while trying to decode base62

I'm trying to write a decode base62 function, but python gives me the error: TypeError: 'int' object is not iterable This code works out perfectly outside of flask. but it doesn't work in flask. The code is below : EDITED: BASE_ALPH =…
byc
  • 66
  • 10
-2
votes
2 answers

no implicit conversion of String into Integer base62 encode rails

uuid = Digest::SHA256.digest(SecureRandom.uuid) id = Base62.encode(uuid) no implicit conversion of String into Integer line = id = Base62.encode(uuid)
1 2
3