You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for file_name in file_list:
if os.path.isfile(file_name):
with open(file_name, 'rb') as file:
encrypted_data = file.read()
decrypted_data = ArkAssets.text_asset_decrypt(encrypted_data)
new_file_name = file_name + '.decrypted'
with open(new_file_name, 'wb') as decrypted_file:
decrypted_file.write(decrypted_data)
But it doesn't work, I am not familar with code - -. I am only trying to decrypt bytes files in assets/AB/Android/gamedata/excel folder and repack them.
The text was updated successfully, but these errors were encountered:
I tried to use
import os
from Crypto.Cipher import AES
class ArkAssets:
CHAT_MASK = bytes.fromhex('554954704169383270484157776e7a7148524d4377506f6e4a4c49423357436c').decode()
Get the current folder path
folder_path = os.getcwd()
Get all files in the current folder
file_list = os.listdir(folder_path)
Decrypt each byte file in the folder
for file_name in file_list:
if os.path.isfile(file_name):
with open(file_name, 'rb') as file:
encrypted_data = file.read()
decrypted_data = ArkAssets.text_asset_decrypt(encrypted_data)
new_file_name = file_name + '.decrypted'
with open(new_file_name, 'wb') as decrypted_file:
decrypted_file.write(decrypted_data)
But it doesn't work, I am not familar with code - -. I am only trying to decrypt bytes files in assets/AB/Android/gamedata/excel folder and repack them.
The text was updated successfully, but these errors were encountered: