常见的编码.md
- base家族
- 一般来说,码表越大,编码结果长度越短
- base16
- 编码:
PHP
的bin2hex
函数 - 解码:
PHP
的hex2bin
函数
- 编码:
- base32
-
码表:
A-Z
和2-7
-
优势
-
没有base64的
/
,方便用作文件名 -
没有
1
、8
、0
,避免与形近的字母混淆
-
-
- base58
-
码表:
1-9
、A-H
、J-N
、P-Z
、a-k
、m-z
(去掉了0
、O
、l
、I
) -
优势
- 同样没有base64的特殊字符
-
- base64
- 码表:
A-Z
、a-z
、0-9
、+
、/
- 码表:
#Web #PHP #encoding #function #Misc