mbuet2ner / JEasyCrypto

A project for educational purposes for the course "Open Source Software Development" at the University of Oulu
GNU General Public License v3.0
2 stars 23 forks source link

Wrong text in decrypting console application #23

Closed tvuolio closed 4 years ago

tvuolio commented 4 years ago

When the class EasyCryptoConsole requests to choose between encryption or decryption, it asks to provide encryption method, regardless of whether the user chooses "d" or "e".

In line 25: String e = console.readLine("Please enter text to be encrypted > "); The above console output should depend on the input character given in the line 24: String d = console.readLine("Do you wish to encrypt or decrypt (e or d)? > ");

This issue needs to be fixed.

mbuet2ner commented 4 years ago

Yes, you are right. Either a modified e should be used (with reference to both, or none), or we shold add another variable for that. Thank you!

mbuet2ner commented 4 years ago

Fixed with #27!