Skip to content
Snippets Groups Projects
Commit cd8b186c authored by Egon Nathan Bittencourt Araujo's avatar Egon Nathan Bittencourt Araujo
Browse files

limit 500 char right

parent 9ecbc852
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ std::string playfair(std::string text, const std::string key, int crypt){ ...@@ -39,7 +39,7 @@ std::string playfair(std::string text, const std::string key, int crypt){
std::cout << std::endl; std::cout << std::endl;
}*/ }*/
unsigned int indexT = 0; unsigned int indexT = 0;
while(indexT <text.size() ){ while(indexT <text.size() && ret.str().size() < 500 ){
while(text[indexT] < 'a' || text[indexT] > 'z') ++indexT; while(text[indexT] < 'a' || text[indexT] > 'z') ++indexT;
char fst = text[indexT]; char fst = text[indexT];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment