I am Setsuna (Encrypt/Decrypt)

How to translate the files of a game
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by Ogoshi »

Hey man, how can i translate this game with this archives?
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by makc_ar »

Ogoshi wrote:Hey man, how can i translate this game with this archives?

I don't know how to translate, sorry.
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by Ogoshi »

Theses files are all localization of the game?

Alluigi can help me? :D
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

Maybe someone with the game will have some fun finding the key and the encryption algorithm.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by Ekey »

AES
Key: 8xTD|EgD|b?07QDj
Vector: /]s@*CxLzM!9Qd%(
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by Ogoshi »

Ekey wrote:AES
Key: 8xTD|EgD|b?07QDj
Vector: /]s@*CxLzM!9Qd%(



What is this? x_x
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by happydance »

just wondering how do you guys get those encryption algorithm?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

script for quickbms:

Code: Select all

encryption aes "8xTD|EgD|b?07QDj" "/]s@*CxLzM!9Qd%("
get SIZE asize
get NAME filename
string NAME + "_decrypt"
log NAME 0 SIZE
GrandGTO
Posts: 7
Joined: Wed Jul 27, 2016 2:18 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by GrandGTO »

Hello,

Are you sure about the AES key ?
Because with quickbms and the script, I still can't read the dialogue file.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

The key and ivec that Ekey provided work perfectly with the messages.rar samples provided by makc_air, the decrypted files contain binary data and unicode strings.
GrandGTO
Posts: 7
Joined: Wed Jul 27, 2016 2:18 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by GrandGTO »

OK I have this :
http://www.noelshack.com/2016-30-1469631238-capture.png

What software could work better to edit dialogue lignes ?

Then, How makc_ar get these files ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

I guess he got the files from parameter.cpk using the cpk.bms script.

Without a custom solution to parse and edit that specific type of files, the only "solution" is using a hex editor without modifying the size of the strings and file itself.
GrandGTO
Posts: 7
Joined: Wed Jul 27, 2016 2:18 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by GrandGTO »

Thanks for your help. Yes that's it !

- Ok I have decrypted the cpk file thanks to your script. Now I have several files of dialogue like makc_ar have sent.

- I use the script that you have posted to decrypt all these files. I can read some words on these files.

- Now I think I have to do the way back ? I mean I have to encrypt all files like they were before, and make a new cpk files. Is It possible ? And how ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

Sure:

Code: Select all

encryption aes "8xTD|EgD|b?07QDj" "/]s@*CxLzM!9Qd%(" 1
get SIZE asize
get NAME filename
string NAME - "_decrypt"
log NAME 0 SIZE
It saves the file without the "_decrypt" suffix so it will have just the original name.
GrandGTO
Posts: 7
Joined: Wed Jul 27, 2016 2:18 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by GrandGTO »

That's fine ! Now just miss to make the new cpk file from all files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

That's something hard... in fact the script is partially valid for reimporting because the compressed files will fail when the game reads them (there is a note in quickbms.txt when you search cpk_compress)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by AnonBaiter »

aluigi wrote:(there is a note in quickbms.txt when you search cpk_compress)

Speaking of that, have you ever tried to contact CRIWARE to obtain an SDK? It might have some tools necessary for researching purposes.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: I am Setsuna (Encrypt/Decrypt)

Post by aluigi »

Have you read the note? There is no problem with the compression itself, the problem is the same of lz4 in reimport mode with the original ZSIZE differing than the new one due to the lack of end markers in the specifications of the algorithm.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: I am Setsuna (Encrypt/Decrypt)

Post by AnonBaiter »

Well I wasn't aware of that, but I'm talking about archives in which cpk.bms can't otherwise handle.