Halo wars definitive edition, .era decrypter/encrypter

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Savage
Posts: 176
Joined: Thu Oct 02, 2014 4:58 pm

Halo wars definitive edition, .era decrypter/encrypter

Post by Savage »

Hi! i know this tool works great (in GUI mode), i tried to use the CLI but is horrible and it requires to have installed the DOTNET 4.5.2

Anyway i found the working CLI to decrypt and encrypt the files

name=filename without extension

Decrypt

Code: Select all

phxtool.exe --env=phx --tool=era --mode=decrypt --path="c:\game\halo" --out="c:\game\halo" --name=root 


Encrypt

Code: Select all

phxtool.exe --env=phx --tool=era --mode=encrypt --path="c:\game\halo" --out="c:\game\halo" --name=root 


Aluigi posted time ago some documentation about the Halo packets

http://aluigi.altervista.org/papers.htm#halo

The question if it is possible to create a bms just to decrypt/encrypt the data, not decompress or unpack, looking the source code of the PhxTools, i found a file in HaloWarsDocs\PhxTools\Games/Phoenix\KSoft.Phoenix\Resource\ERA\EraFileUtil.cs where explains the encryption used in the era format.

The source code must be donwload with the --recursive parameter

Code: Select all

git clone --recursive https://github.com/HaloMods/HaloWarsDocs.git


I attach the source code downloaded with git (recursive)