Is there a good way to check if a string is encoded in base64 using Python?
base64
import base64 import binascii try: base64.decodestring("foo") except binascii.Error: print "no correct base64"