Optimal binary string representation

I need to identify an entity using a 12-character string containing only numbers and letters (case insensitive), and I want to compress the maximum number of possible key values.

those. JH45KJ2H2313

I know that I can use hexadecimal encoding (0-9, AF, 4 bits per char => 2 ^ 48 values) I think I should exclude base64 because it includes 2 extra characters (+ and / usually) .

I think there is a better way to use space. That is, if 1 use 0-9 + AZ, I can save 36 values ​​~ 4 bits in char.

Is there a coding standard or do I need to implement encoding / decoding myself?

+3
source share
1 answer

: BCL Base36. .

+1

All Articles