Often one has to convert a large (such as 128 or 160 bit) number into a symbol in a URL. For example, many web applications use md5 (random ()) for UUIDs.
If you need to put that value into a URL, then just encode it as a hexadecimal string.
But obviously hex encoding is not very strong encoding, are there other ways that are well fit in url?
You can also do better with base64-url encoding (az, az, 0-9, - and _ [see RFC4648 section 5]). Various encoding methods (base 16, base 32, and base 64) are included in many different forms. Apart from this, the numbers which can be set based on the number of bits, you can run it through the gauges and then use one of the encoding methods described. The use of jizip is of course dependent on the number of times you are going to be encoded.
Comments
Post a Comment