Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import base64
- import ast
- import datetime
- dec_input = input("Please paste a decoded Phoenotopia 1 passcode here:\n")
- dec_data = ast.literal_eval(dec_input)
- def _GameDataArrayToString(param1):
- _loc3_ = str(param1[0]) + "," + str(param1[1]) + "," + str(param1[2]) + "," + str(param1[3]) + "," + str(param1[4]) + "," + str(param1[5]) + "," + str(param1[6]) + "," + str(param1[7]) + "," + str((_StringifyNumArray(param1[8][0]) + _StringifyNumArray(param1[8][1]) + _StringifyNumArray(param1[8][2]))) + "," + str(_StringifyBooleanArray(param1[9])) + "," + str(_StringifyKeyArray(param1[10])) + "," + str(param1[11]) + "," + str(param1[12]) + "," + str(param1[13]) + "," + str(param1[14]) + "," + str(param1[15]) + "," + str(param1[16]) + "," + str(param1[17]) + "," + str(param1[18]) + "," + str(param1[19]) + "," + str(param1[20]) + "," + str(param1[21]) + "," + str(param1[22]) + "," + str(param1[23]) + "," + str(param1[24]) + "," + str(param1[25]) + "," + str(param1[26]) + "," + str(param1[27]) + "," + str(param1[28]) + "," + str(param1[29]) + "," + str(param1[30]) + "," + str(param1[31]) + "," + str(param1[32]) + "," + str(param1[33]) + "," + str(param1[34])
- return str(_loc3_).strip("()").encode('ascii')
- def _StringifyNumArray(param1):
- _loc2_ = ""
- _loc3_ = int(0)
- while _loc3_ < len(param1):
- _loc2_ = str(_loc2_) + (str(param1[_loc3_]) + "_")
- _loc3_ = _loc3_ + 1
- return _loc2_
- def _StringifyKeyArray(param1):
- _loc2_ = ""
- _loc3_ = 0
- while _loc3_ < len(param1):
- if param1[_loc3_] == False:
- _loc2_ = _loc2_ + "-1_"
- else:
- _loc2_ = _loc2_ + (str(param1[_loc3_]) + "_")
- _loc3_ = _loc3_ + 1
- return _loc2_
- def _StringifyBooleanArray(param1):
- _loc2_ = ""
- _loc3_ = int(0)
- _loc4_ = int(0)
- _loc7_ = int(0)
- while _loc7_ < len(param1):
- if param1[_loc7_]:
- _loc2_ = _loc2_ + "ABCDEFGHIJKLM01234"[_loc3_]
- _loc3_ = (_loc3_ + 1) % len("ABCDEFGHIJKLM01234")
- else:
- _loc2_ = _loc2_ + "NOPQRSTUVWXYZ56789"[_loc4_]
- _loc4_ = (_loc4_ + 1) % len("NOPQRSTUVWXYZ56789")
- _loc7_ = _loc7_ + 1
- return _loc2_
- def UpdatePassCode():
- raw_date = datetime.datetime.now()
- date_time = str(raw_date).split(" ")
- date = date_time[0].split("-")
- time = date_time[1].split(":")
- _loc1_ = dec_data
- _loc2_ = {"fullYear": date[0], "month": date[1], "day": date[2], "hours": time[0], "minutes": time[1]}
- _loc3_ = _loc2_["fullYear"] + "-" + _loc2_["month"] + "-" + _loc2_["day"] + "-" + _loc2_["hours"] + ":" + _loc2_["minutes"]
- _pass_code = "PHOENOTOPIA-" + _loc3_ + "-___" + str(base64.b64encode(_GameDataArrayToString(_loc1_))).strip("b''") + "___";
- return _pass_code
- print(UpdatePassCode())
- input("Press enter to exit...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement