private string Encode(string src, string message, CryptographicAlgorithmImpl crypt = null, string password = null, bool compression = false, int lsbIndicator = 3) { var model = new EncodeModel(src, message, crypt, password, Algorithm, compression, lsbIndicator); mStopwatch.Start(); var result = model.Encode(); mStopwatch.Stop(); mEncryptionTime = mStopwatch.Elapsed; mStopwatch.Reset(); return(result); }
protected override void RunWithParameters() { if (Configured) { InitializeRun(); //TODO Show process? var model = new EncodeModel(mImagePath, mMessage, GetCrypt(mCryptIndex), mPassword, GetStego(mStegoIndex), mCompression, mLsbIndicator); var result = model.Encode(); Console.WriteLine(); if (result != null) { Console.WriteLine("ENCODING successfully. Please enter a path to save:"); var path = Console.ReadLine(); File.Move(result, mResultPath); Console.WriteLine("Image saved at " + path); } Console.WriteLine("Press <ENTER> to exit."); Console.ReadLine(); } }