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:
2021-07-20 16:04:18 -04:00
parent c8683680dd
commit 909bf3278e
3 changed files with 25 additions and 6 deletions

View File

@@ -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_;
};