CSPspEmu.Hle.Formats.EncryptedPrx.Decrypt C# (CSharp) Method

Decrypt() public method

public Decrypt ( byte _pbIn, bool ShowInfo = false ) : byte[]
_pbIn byte
ShowInfo bool
return byte[]
        public byte[] Decrypt(byte[] _pbIn, bool ShowInfo = false)
        {
            this.Kirk = new Kirk();
            this.Kirk.kirk_init();

            return DecryptPRX(_pbIn, ShowInfo);
        }

Usage Example

Example #1
0
 public void LoadTest()
 {
     var EncryptedPrx = new EncryptedPrx();
     var DecryptedData = EncryptedPrx.Decrypt(File.ReadAllBytes("../../../TestInput/EBOOT.BIN"));
     File.WriteAllBytes("../../../TestInput/test.bin", DecryptedData);
     //File.ReadAllBytes("../../../TestInput/BOOT.BIN");
 }