lizzie lizzie - 1 month ago 19
Python Question

verify is a string is encoded in base64 python

Is there a good way to verify if a string is encoded in base 64 with python?

Thank you

Answer

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.