Short link generate ideas c #

Finished learning relevant information, and turned back to find an important position in the basics!

A saying that to understand this matter, the practical application of the conversion algorithm textbooks among!

In the now well-developed Internet api cash, how many people can know these know why yet.

Requirements: questionnaires, needs to send a text message to the customer, for statistical service data, in order to reduce the length of the message, thus requiring short link.

 

Hex conversion tools: https://tool.lu/hexconvert/

Link data generating serialized identification string, e.g. ID: 20200123

With this tool we can see through different binary conversion, we can put a string of length eight data length by 64 hex converted into four, this is how to do it?

Sixty-four hex

Base64 is based on 64 printable characters to represent binary data representation. Since the sixth power of 2 equal to 64, so every 6 bits as a unit, corresponding to a printable character. Three bytes 24 bytes, corresponding to four Base64 units, i.e. 3 bytes need four printable characters to represent. It can be used as a transmission encoded e-mail. Base64 printable characters includes the letters AZ, az, 0-9, so that a total of 62 characters, in addition to two symbols can be printed in various different systems. Some other encoding methods such as uuencode and later versions binhex and the use of 64 different characters to represent 6 binary digits, but they are not called Base64.

 

Characters include letters each case 26, together with 10 digits, plus sign "+" slash "/", a total of 64 characters

Referring specifically to:

https://baike.baidu.com/item/%E5%85%AD%E5%8D%81%E5%9B%9B%E8%BF%9B%E5%88%B6/2176107?fr=aladdin

 

To be added to achieve specific c #

Published 64 original articles · won praise 12 · views 90000 +

Guess you like

Origin blog.csdn.net/sunwork888/article/details/104075024
Recommended