Update columnar-transposition input validation
+ Add keyWord and message validation in columnar-transposition example + Add quotes around output to help show leading / trailing spaces
This commit is contained in:
@@ -41,6 +41,11 @@ struct CipherData {
|
||||
std::string Decrypt(std::string message="");
|
||||
|
||||
private:
|
||||
// Used to make a valid keyword from an invalid keyWord
|
||||
// + Still encrypts / decrypts with whatever the user inputs as keyWord
|
||||
// + But technically the keyword is modified without the user knowing :)
|
||||
void ValidateKeyword(const std::string &message);
|
||||
|
||||
std::string keyWord_;
|
||||
std::vector<int> orderVect_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user