Solved AES encryption

Status
Not open for further replies.

Kyraie

Premium
Premium
Joined
Sep 12, 2024
Messages
52
Solutions
1
Reaction score
12
Points
8
Hey guys!
I was wondering few things regarding AES. So reading through multiple sources and their setup regarding AES, I've seen that they have different tree file structure. In example Titanium MMO uses "Data/Item", "Data/Icon" etc, while Nanus uses "Data" as the destination folder.

When encrypthing the client using Titanium MMO's tree file structure, I'd pressume you gotta encrypt one folder at a time since you can't specify output folder in rijndael_res.txt.
Also regarding updating players with latest files, how would the .AES-crypt.exe figure out if anything has changed? Would it to update the data folder in the server resources used to encrypt the client?
 
Solution
From what I know about AES-crypt you have to set each folder in the rijndael_add.txt and encrypt each folder separately.

If you put the existing encrypted files for that folder inside the output directory then it should check the existing files first and update them if necessary (if you've added more files since last encryption). Also if you save the rijndael_res.txt for each folder when you encrypt it, and then put these back in the rijndael_res.txt files when you encrypt it later, it will tell you how many new files there are (since the previous encryption) when you click "scan files" but make sure you've got the same old encrypted files in the output directory that match the saved rijndael_res.txt for that encryption.
From what I know about AES-crypt you have to set each folder in the rijndael_add.txt and encrypt each folder separately.

If you put the existing encrypted files for that folder inside the output directory then it should check the existing files first and update them if necessary (if you've added more files since last encryption). Also if you save the rijndael_res.txt for each folder when you encrypt it, and then put these back in the rijndael_res.txt files when you encrypt it later, it will tell you how many new files there are (since the previous encryption) when you click "scan files" but make sure you've got the same old encrypted files in the output directory that match the saved rijndael_res.txt for that encryption.
 
Last edited:
Solution
All this AES is hella confusing, I managed to get it working like you said last night, weirdly some of the textures don’t load properly in game.

I didn’t provide the .auth files in the client since it loaded almost everything fine without it.

Sad there’s not a proper guide on using AES, or a alternative like chacha20
 
Yeah it's not great and is abit of a headache sometimes.

Ultimately it depends what you want it for as well. If you're just using it to protect assets then I wouldn't bother as determined people will get them from your client regardless.

I have a client that works fully with AES encryption and no issues, but the main reason I do this is because I like how much cleaner the client is when its resources are encrypted :p
 
  • Like
Reactions: Fliperworld
Yeah it's not great and is abit of a headache sometimes.

Ultimately it depends what you want it for as well. If you're just using it to protect assets then I wouldn't bother as determined people will get them from your client regardless.

I have a client that works fully with AES encryption and no issues, but the main reason I do this is because I like how much cleaner the client is when its resources are encrypted :p
I agree with you.

I'm more radical and don't even waste time using encryption on the client's files. I just make a modification to merge.exe and the client to include the path in each file within the .res file instead of using the relative path of the resource to map it, leaving the resource files in a single subfolder to make the client cleaner. In addition to making it a little more difficult to access the files using existing resource tools.
 
Status
Not open for further replies.