且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查字符串是否使用 Python 以 base64 编码

更新时间:2023-11-27 15:22:46

这是不可能的.您可以做的***的事情是验证一个字符串是否是有效的 Base 64,尽管许多仅包含 ASCII 文本的字符串可以被解码为 Base 64.

This isn't possible. The best you could do would be to verify that a string might be valid Base 64, although many strings consisting of only ASCII text can be decoded as if they were Base 64.