Ejemplo n.º 1
0
 public static void EnsureKeys()
 {
     GTA5Constants.PC_AES_KEY           = Resource.gtav_aes_key;
     GTA5Constants.PC_NG_KEYS           = CryptoIO.ReadNgKeys(Resource.gtav_ng_key);
     GTA5Constants.PC_NG_DECRYPT_TABLES = CryptoIO.ReadNgTables(Resource.gtav_ng_decrypt_tables);
     GTA5Constants.PC_LUT = Resource.gtav_hash_lut;
 }
Ejemplo n.º 2
0
        private static void LoadGTA5Keys()
        {
            string path = ".\\Keys";

            GTA5Keys.PC_AES_KEY           = File.ReadAllBytes(path + "\\gtav_aes_key.dat");
            GTA5Keys.PC_NG_KEYS           = CryptoIO.ReadNgKeys(path + "\\gtav_ng_key.dat");
            GTA5Keys.PC_NG_DECRYPT_TABLES = CryptoIO.ReadNgTables(path + "\\gtav_ng_decrypt_tables.dat");
            GTA5Keys.PC_NG_ENCRYPT_TABLES = CryptoIO.ReadNgTables(path + "\\gtav_ng_encrypt_tables.dat");
            GTA5Keys.PC_NG_ENCRYPT_LUTs   = CryptoIO.ReadNgLuts(path + "\\gtav_ng_encrypt_luts.dat");
            GTA5Keys.PC_LUT = File.ReadAllBytes(path + "\\gtav_hash_lut.dat");
        }