mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Fixed bug that cause an invalid grid string
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* @brief The current library's version number
|
||||
*
|
||||
*/
|
||||
const std::string Playfair::version = "1.0";
|
||||
const std::string Playfair::version = "1.0.1";
|
||||
|
||||
///The letter that needs replaced for the cipher to work
|
||||
char Playfair::REPLACED = 'J';
|
||||
@@ -431,7 +431,8 @@ std::string Playfair::getGrid() const{
|
||||
std::string temp;
|
||||
for(int row = 0;row < 5;++row){
|
||||
for(int col = 0;col < 5;++col){
|
||||
temp += grid[row][col] + " ";
|
||||
temp += grid[row][col];
|
||||
temp += " ";
|
||||
}
|
||||
temp += '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user