Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Script to re-encrypt after I've decrypted?

Featured Replies

  • Author
  • Localization

umithink, posted Thu Feb 27, 2020 2:25 pm (54291)


Context: Phoenix Wright: Ace Attorney's sound files (.unity3d) are encrypted with Rijndael. I am able to successfully decrypt the file, modify it, and then I need to encrypt it again so the game will accept it.

I'm using this script (from https://www.zenhax.com/viewtopic.php?f=9&t=11186) to decrypt:
Code:
get NAME filename
encryption Rijndael "\x35\x38\x9A\xFF\xF2\x61\xB3\xE8\x87\x22\x24\x0B\x6B\x0B\x25\xC8" "\x01\x85\x40\xA5\x57\xDE\x8C\x4E\x86\xE4\x23\xE3\x3A\xB9\x77\x84"
get SIZE asize
log NAME 0 SIZE


To re-encrypt what I've decrypted, would I just run the same script on my output file again? (Doesn't seem like that works.) Or are there changes that need to be made to this script to be able to encrypt?
  • Author
  • Localization

umithink, posted Thu Feb 27, 2020 2:38 pm (54292)


(If this thread would be a better fit under the "Help with QuickBMS & tools" forum, feel free to move this thread there.)
  • Author
  • Localization

aluigi, posted Fri Feb 28, 2020 7:11 am (54309)


Just add 1 to the "encryption" instruction and it will encrypt the file:
Code:
get NAME filename
encryption Rijndael "\x35\x38\x9A\xFF\xF2\x61\xB3\xE8\x87\x22\x24\x0B\x6B\x0B\x25\xC8" "\x01\x85\x40\xA5\x57\xDE\x8C\x4E\x86\xE4\x23\xE3\x3A\xB9\x77\x84" 1
get SIZE asize
log NAME 0 SIZE
  • Author
  • Localization

YellowBoiii, posted Wed Jun 23, 2021 11:52 am (64855)


it doesn't work
  • Author
  • Localization

aluigi, posted Mon Jun 28, 2021 10:20 am (64944)


Impossible.
It's a simple block-cipher encryption, indeed I already tested it: decrypt encrypt = original
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.