private string Decode(string src, CryptographicAlgorithmImpl crypto = null, string password = null, bool compression = false, int lsbIndicator = 3) { var model = new DecodeModel(src, crypto, password, Algorithm, compression, lsbIndicator); mStopwatch.Start(); var result = model.Decode(); mStopwatch.Stop(); mDecryptionTime = mStopwatch.Elapsed; mStopwatch.Reset(); return result; }
protected override void RunWithParameters() { if (Configured) { InitializeRun(); //TODO Show process? var model = new DecodeModel(mImagePath, GetCrypt(mCryptIndex), mPassword, GetStego(mStegoIndex), mCompression, mLsbIndicator); var result = model.Decode(); Console.WriteLine(); using (var sw = new StreamWriter(File.Create(mResultPath))) { sw.Write(result); } Console.WriteLine("Press <ENTER> to exit."); Console.ReadLine(); } }