mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Cleaned up some old code
This commit is contained in:
17
main.cpp
17
main.cpp
@@ -1,7 +1,7 @@
|
||||
//Ciphers/main.cpp
|
||||
//Matthew Ellison
|
||||
// Created: 4-25-18
|
||||
//Modified: 4-30-18
|
||||
//Modified: 5-2-18
|
||||
//This file contains the driver function and the test functions for the Cipher program
|
||||
//This program will use some simple ciphers that are no longer widely used but still fun to play with
|
||||
|
||||
@@ -69,21 +69,6 @@ int main(int argc, char** argv){
|
||||
//Run the appropriate functions for the cipher
|
||||
Fn cipherFunction = getCipher(cipherFlags);
|
||||
cipherString = cipherFunction(inputFile, cipherFlags[ENCODE]);
|
||||
/*
|
||||
if(cipherFlags[CAESAR]){
|
||||
cipherString = runCaesar(inputFile, cipherFlags[ENCODE]);
|
||||
}
|
||||
else if(cipherFlags[PLAYFAIR]){
|
||||
cipherString = runPlayfair(inputFile, cipherFlags[ENCODE]);
|
||||
}
|
||||
else if(cipherFlags[VIGENERE]){
|
||||
cipherString = runVigenere(inputFile, cipherFlags[ENCODE]);
|
||||
}
|
||||
else{
|
||||
cipherString = "There is a big problem. No valid cipher option was given.\n";
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
if(failFlag){
|
||||
std::cout << cipherString << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user