Perry Rhodan encoded ? Jpegs

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Perry Rhodan encoded ? Jpegs

Post by Itze » Sun Mar 16, 2008 11:55 am

Hi, i've been trying to display the textures from the new Perry Rhodan adventure game but they seem to be encoded somehow :?

i have attached the head texture of perry(atleast i think so :D )

maybe someone can figure out how to make it viewable again :ninja:
You do not have the required permissions to view the files attached to this post.

User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe » Sat Mar 22, 2008 9:08 pm

Hi,

I've made a little tool which decrypts the file you sent. Please tell me if it works with other files, too.

You can download it from http://gamefileformats.the-underdogs.in ... tperry.zip

Rheini
Moderator
Posts: 653
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini » Sun Mar 23, 2008 12:06 am

Care to share the algo? :)

User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe » Sun Mar 23, 2008 11:49 am

Of course:

Code: Select all

void decryptData(byte *data, uint32 size) {
    byte xorValues[3] = {0x42, 0x99, 0x80};
    for (uint32 ofs = 0; ofs < size; ofs++) {
        uint32 value = ofs % 3;
        data[ofs] ^= xorValues[value] - 0x6E;
    }
}

Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Perry Rhodan encoded ? Jpegs

Post by Itze » Tue Mar 25, 2008 7:17 pm

thanks john_doe :D

works fine, i tried a few different files(128x128 up to 1024x1024) and it converted them properly

would it be possible to convert them back with a simple tool too?

i saw the algo but unfortunately im no programmar and have no idea how it works :eek:

Rheini
Moderator
Posts: 653
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini » Tue Mar 25, 2008 7:20 pm

Try using the same program. It might work.

Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Perry Rhodan encoded ? Jpegs

Post by Itze » Tue Mar 25, 2008 9:35 pm

lol yeah it does... :D
thanks

Rheini
Moderator
Posts: 653
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 40 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini » Tue Mar 25, 2008 9:46 pm

btw this works because the algorithm uses XOR.

mambox
mega-veteran
mega-veteran
Posts: 189
Joined: Wed Mar 24, 2004 2:06 pm
Has thanked: 5 times
Been thanked: 4 times

Re: Perry Rhodan encoded ? Jpegs

Post by mambox » Thu Mar 27, 2008 4:46 pm

I dont know how good is the game but look great!

another xoring,congrats to john.

btw how did you reverse the xoring method,analysis of file or reversing exe?

kurt28
n00b
Posts: 17
Joined: Tue Sep 07, 2010 6:00 pm
Has thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by kurt28 » Wed Sep 08, 2010 6:48 pm

john_doe wrote:Hi,

I've made a little tool which decrypts the file you sent. Please tell me if it works with other files, too.

You can download it from http://gamefileformats.the-underdogs.in ... tperry.zip
Please, can you upload the file again?

Thanks.

User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe » Thu Sep 09, 2010 5:56 pm

Of course, I hope I can still find it somewhere...

User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe » Mon Sep 13, 2010 9:22 am

I found it and upload the tool here:
http://www.xentax.com/uploads/author/jo ... tperry.zip

kurt28
n00b
Posts: 17
Joined: Tue Sep 07, 2010 6:00 pm
Has thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by kurt28 » Tue Sep 14, 2010 5:46 pm

Thank you very much. :wink:

Post Reply