How can I know if a string is ascii format and whiche base like: base64,or base32 ... with python I tried
import base64
from binascii import Error
try:
string = base64.b64decode(data)
except Error:
return False
the problem with this code that's it isn't accurate and doesn't tell which base is the string