Post: Calculating game/trophy image hashes
05-12-2011, 01:51 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I've recently discovered that there is a way to calculate the image file for trophies and games based on RSA encryption and an SHA-1 hash. Apparently it has something to do with the way games are stored on the ps3 hard disk (presumably the directory structure somehow indicates the proper algorithm for generating the image file name). My attempt thus far have been unsuccessful, so let me give an example of what I'm trying to determine.

Game Title: Burn Zombie Burn!
Image:
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/ACF3644EAD26EEA91EAC9E823E7BE21046049F61.PNG


First 5 Trophy Images:
Id:1
Title:Extinction
Description:100,000 Zombies killed.
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/A7C328F1CFFD269CAAC6185ABB7C48209D169243.PNG

Id:2
Title:Paint The Town Red
Description:Fill the screen with the maximum amount of blood on any level.
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/4BA63A6130DDBA0A6BAC46AF6E9516FBEE2F3083.PNG

Id:3
Title:Red Shirt
Description:Kill the away team Zombie.
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/EA5271EAD4FC4F5653076D8202AD7F0AD8BCF6DC.PNG

Id:4
Title:Hot To Trot
Description:Last 30 seconds with 50+ zombies on fire.
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/FD6F6384B3BB38D96387FDEC97EDCB347E4D8B04.PNG

Id:5
Title:Murder On The Dance Floor
Description:1000 Zombies sent dancing.
    https://trophy01.np.community.playstation.net/trophy/np/NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5/A98748AC5F2462E1F6B968F61361A30FC9B74B00.PNG


It looks as though the image name is composed of the game id followed by an sha-1 hash for the game "/" followed by an sha-1 hash for the game/trophy image ".PNG"

I would like to know how this hash is calculated. I thought it might have to do with the title/description, but I haven't been able to make that work... I was also told the key to figuring this out was somewhere in trophy cheating forums, but I have not had much luck with that either. I did find xml files indicating package information for games, but nothing in there seems to help translate to correct SHA-1 hash data either. For completeness I've included the xml link for Burn Zombie Burn below anyway.

    https://a0.ww.np.dl.playstation.net/tpl/np/NPUB30046/NPUB30046-ver.xml


Any help or ideas would be very much appreciated! I can't claim to completely understand RSA and SHA-1 so I have to assume I'm just missing something obvious... I hope. Smile
(adsbygoogle = window.adsbygoogle || []).push({});
05-12-2011, 12:02 PM #2
Hi skippycue

It seems that first we need to know how the string to encrypt+hash look like, starting from NPWR00382_00_F12121AA5E4A5E4D7355192E57A9136A7E5556E5 I would assume that the hash is from NPWR00382_00.

To calculate this hash you need the RSA private key, which to me is unknown which one to use, then have a script that takes that private key and checks for it.

I'm still trying to figure out how to calculate the hash provided a private key Smile I'm messing around with openssl trying to understand how to use it and start testing.

It would be AWESOME if anyone could enlighten us with some tips...

Anyone wanting to help ?

Thanks
Nuno
05-15-2011, 03:12 AM #3
Default Avatar
setzer
Guest
I've been trying to figure this out for some time. The hash appears to be calculated on the PS3 itself, so I think you'd need to reverse one of the firmware modules.
05-15-2011, 07:52 AM #4
I guess you are right setzer, and to my understanding it has something to do with the signature contained in SFM files inside TROPHY.TRP ..

I just don't know which module to reverse, and also how to do it ... Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo