12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import base64
-
- def DecodeUppodTextHash( data ):
- hash = "0123456789WGXMHRUZID=NQVBLihbzaclmepsJxdftioYkngryTwuvihv7ec41D6GpBtXx3QJRiN5WwMf=ihngU08IuldVHosTmZz9kYL2bayE"
- data = DecodeUppod_tr(data, "r", "A")
- data = data.replace("\n", "")
- hash = hash.split('ih')
-
- if data.endswith('!'):
- data = data[:-1]
- taba = hash[3]
- tabb = hash[2]
- else:
- taba = hash[1]
- tabb = hash[0]
-
- i = 0;
- while i < len(taba):
- data = data.replace(tabb[i], "__" )
- data = data.replace(taba[i], tabb[i])
- data = data.replace("__" , taba[i])
- i += 1
-
- result = base64.b64decode(data)
- return result
-
- def DecodeUppod_tr(data, ch1, ch2):
- if data[:-1].endswith(ch1) and data[2]==ch2:
- srev = data[::-1] # revers string
- try:
- loc3 = int(float(srev[-2:]) / 2) # get number at end of string
- except ValueError:
- return data
- srev = srev[2:-3] # get string between ch1 and ch2
- if loc3 < len(srev):
- i = loc3
- while i < len(srev):
- srev = srev[:i] + srev[i+1:] # remove char at index i
- i += loc3
- data = srev + "!"
- return data
-
- print(DecodeUppodTextHash('XRHzQZe3yv7s2iJgQx687awzQWkvy1bvyv2350Jlf0ts2jAz2WtG5W5LfmJl5jQL502z5i5sfZtMDj23a0A0y0Uj2xkT5mcl5MUWfjcz2j5G5mElOmtGOm5n5mJYOitLyWD47j6GPk44yCl0fjb7'))
|