Base64原理解析:https://segmentfault.com/a/1190000012203024 Base64是基于64个字符进行转换的,因为2的6次方正好为64,所以6bit就可以表示出64个字符,因此在转换的过程中以6bit表示一个字符。