# Case loss#####  can you help me brute force the case on this base 64 encoded string in order to help me find the secret message?##### Ciphertext: t0zqufqtq1rge2jsvxqzzjbyqzfur19iyvmznjrfmvnfm2ftex0
The first thing i did was to divide the cipher text into chunks of four and then get all the possible combinations of upper and lowercase letters of the chunk.```pythonfor i in range(0, len(flag_enc), 4):    temp = flag_enc[i:i+4]    comb = set(map(''.join, itertools.product(*zip(temp.upper(), temp.lower()))))```Then i decoded these chunks and printed the ones that didn't have any weird characters and/or were readable. ```pythonfor part in comb:    try :                  plain = (base64.b64decode(part.ljust(8, '=')).decode('utf-8'))         if not has_weird_chars(plain):            print(part, plain)    except:        pass```And from there i remade the original text with the parts that made sense.```shell❯ python solve.pyT0ZQ OFP --T0Zq OFjUFQt PT- --Q1Rg CT`Q1RG CTF --e2Js {ble2JS {bR --VXQz Ut3 --ZjBy f0r --ZjBY f0XQzFu C1n --QzFU C1TR19I G_HR19i G_b --YVMz aS3 --NjRF 64ENjRf 64_ --MVNF 1SEMVNf 1S_ --M2Ft 3amM2FT 3aS --eX0 y} --```**OFPPT-CTF{bRUt3f0rC1nG_baS364_1S_3aSy}**
Full code```pythonimport itertoolsimport base64import stringdef has_weird_chars(text):    for c in text:        o = ord(c)        if o < 33 or o > 126:            return True    return Falsealphabet = string.ascii_letters + "0123456789"#print(alphabet)flag_enc = "t0zqufqtq1rge2jsvxqzzjbyqzfur19iyvmznjrfmvnfm2ftex0"flag = ""# every 4 characters of base64 are 3 characters of the original textfor i in range(0, len(flag_enc), 4):    temp = flag_enc[i:i+4]    comb = set(map(''.join, itertools.product(*zip(temp.upper(), temp.lower()))))    for part in comb:        try :                      plain = (base64.b64decode(part.ljust(8, '=')).decode('utf-8'))             if not has_weird_chars(plain):                print(part, plain)        except:            pass```