Multipurpose utility for managing Games for Windows - LIVE installs and content. (Mirrored from https://github.com/InvoxiPlayGames/GfWLUtility)
1using System;
2using System.Linq;
3
4namespace GfWLUtility
5{
6 /*
7 * For Xbox 360 researchers among us who might've stumbled upon this code,
8 * this is not what you're looking for, at all.
9 *
10 * I recommend checking out emoose's ExCrypt library for a reference of
11 * Xbox 360 XeKeys, which will be much more useful for you:
12 * https://github.com/emoose/ExCrypt
13 */
14
15 internal class XeKeys
16 {
17 public static byte[] UnObfuscate(byte[] input)
18 {
19 // skip over the header - this is populated on xenon but not xlive
20 byte[] buffer = input.Skip(0x18).ToArray();
21 try
22 {
23 return PanoramaCrypto.Obfuscation.DecryptBuffer(buffer);
24 } catch (Exception)
25 {
26 return null;
27 }
28 }
29 }
30}