Closed ytanck closed 1 month ago
base64 的长度不是 4 的倍数,需要在末尾添加“=”
The length of base64 is not a multiple of 4, and '=' needs to be added at the end。
Sorry for overlooking this issue.
This module does not have isBase64()
. It does have isValid()
instead.
比如MTMzNjY2Njg4ODg 和 MTMzNjY2Njg4ODg= 后面多了个‘=’,但都可以base64解码成功。但有些方法判断 isBase64('MTMzNjY2Njg4ODg')返回false