private Settings() { mSerializer = new JsonSerializer { TypeNameHandling = TypeNameHandling.Auto }; LoadConfig(); EncryptionMethods = AlgorithmCollector.GetAllAlgorithm <CryptographicAlgorithmImpl>(); SteganographicMethods = AlgorithmCollector.GetAllAlgorithm <SteganographicAlgorithmImpl>(); }
protected CryptographicAlgorithmImpl GetCrypt(int index) { var algorithms = AlgorithmCollector.GetAllAlgorithm <CryptographicAlgorithmImpl>(); return(algorithms[index]); }
protected SteganographicAlgorithmImpl GetStego(int index) { var algorithms = AlgorithmCollector.GetAllAlgorithm <SteganographicAlgorithmImpl>(); return(algorithms[index]); }
//protected SteganographicAlgorithmImpl SteganographicAlgorithmChooser() //{ // Console.WriteLine(Seperator + " Steganographic Algorithm Chooser " + Seperator); // var algorithms = AlgorithmCollector.GetAllAlgorithm<SteganographicAlgorithmImpl>(); // return algorithms[AlgorithmChooser(algorithms.Select(x => x.Name))]; //} //protected CryptographicAlgorithmImpl CryptographicAlgorithmChooser() //{ // Console.WriteLine(Seperator + " Cryptographic Algorithm Chooser " + Seperator); // var algorithms = AlgorithmCollector.GetAllAlgorithm<CryptographicAlgorithmImpl>(); // return algorithms[AlgorithmChooser(algorithms.Select(x => x.Name))]; //} private List <T> GetAllAlgorithms <T>() { return(AlgorithmCollector.GetAllAlgorithm <T>()); }