public async Task DencryptTestAsync() { Console.WriteLine("Dencrypting..."); await MixUtils.Dencrypt(@"Resources\EncryptedTest.mix", @"Out\DencryptTest.mix"); Console.WriteLine("UnPacking..."); await MixUtils.UnPack(@"Out\DencryptTest.mix", @"Out\DencryptTest").ConfigureAwait(false); Console.WriteLine("All Test Pass!"); }
public async Task UnPackTestAsync() { Console.WriteLine("Normal Mix Unpacking..."); await MixUtils.UnPack(@"Resources\NormalTest.mix", @"Out\NormalTest").ConfigureAwait(false); Console.WriteLine("Normal TS Mix Unpacking..."); await MixUtils.UnPack(@"Resources\NormalTSTest.mix", @"Out\NormalTSTest").ConfigureAwait(false); Console.WriteLine("Encrypted Mix Unpacking..."); await MixUtils.UnPack(@"Resources\EncryptedTest.mix", @"Out\EncryptedTest").ConfigureAwait(false); Console.WriteLine("Encrypted TS Mix Unpacking..."); await MixUtils.UnPack(@"Resources\EncryptedTSTest.mix", @"Out\EncryptedTSTest").ConfigureAwait(false); Console.WriteLine("All Test Pass!"); }
public async Task EncryptTestAsync() { Console.WriteLine("Use Key Encrypting..."); await MixUtils.Encrypt(@"Resources\NormalTest.mix", @"Out\CopyKeyEncryptTest.mix", @"Resources\EncryptedTest.mix"); Console.WriteLine("UnPacking..."); await MixUtils.UnPack(@"Out\CopyKeyEncryptTest.mix", @"Out\CopyKeyEncryptTest").ConfigureAwait(false); Console.WriteLine("Random Key Encrypting..."); await MixUtils.Encrypt(@"Resources\NormalTest.mix", @"Out\RandomKeyEncryptTest.mix"); Console.WriteLine("UnPacking..."); await MixUtils.UnPack(@"Out\RandomKeyEncryptTest.mix", @"Out\RandomKeyEncryptTest").ConfigureAwait(false); Console.WriteLine("All Test Pass!"); }