Jump to content

kof97ol - XOR encrypted DDS files


Go to solution Solved by ikskoks,

Recommended Posts

  • ikskoks changed the title to kof97ol - XOR encrypted DDS files
  • Moderators
  • Solution
Posted

Encrypted with XOR. Key is 0xFF.

ReverseBox based solution below:
 

from reversebox.encryption.encryption_xor_basic import xor_cipher_basic


def main():
    file_1 = open("hrun_res008.dds", "rb")
    encrypted_data = file_1.read()
    file_1.close()
    decrypted_data: bytes = xor_cipher_basic(encrypted_data, b'\xFF')
    file_2 = open("hrun_res008_decrypted.pvr", "wb")
    file_2.write(decrypted_data)
    file_2.close()
    print("File decrypted successfully!")


if __name__ == '__main__':
    main()

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...