Encryption, Decryption works
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void setMessage(const std::string&);
|
void setMessage(const std::string&);
|
||||||
|
|
||||||
std::string message;
|
std::string message{};
|
||||||
std::fstream ioEvent;
|
std::fstream ioEvent{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@ std::string Decryption::cstringToString(char tmp[], const int& SIZE)
|
|||||||
|
|
||||||
unsigned short getTwoNumberedKey(unsigned short& number)
|
unsigned short getTwoNumberedKey(unsigned short& number)
|
||||||
{
|
{
|
||||||
std::string wholeNumber = std::to_string(number);
|
std::string wholeNumber{std::to_string(number)};
|
||||||
char hundred[] = {wholeNumber.at(0)};
|
char hundred[] = {wholeNumber.at(0)};
|
||||||
char ten[] = {wholeNumber.at(1)};
|
char ten[] = {wholeNumber.at(1)};
|
||||||
char one[] {wholeNumber.at(2)};
|
char one[] {wholeNumber.at(2)};
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
MessagingControls* stuff = new MessagingControls;;
|
MessagingControls stuff{};
|
||||||
|
|
||||||
stuff->show();
|
stuff.show();
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -67,10 +67,10 @@ private:
|
|||||||
|
|
||||||
std::string grabCryptionText();
|
std::string grabCryptionText();
|
||||||
|
|
||||||
unsigned short mainWindowHeight = 450;
|
int mainWindowHeight{450};
|
||||||
unsigned short mainWindowWidth = 550;
|
int mainWindowWidth{550};
|
||||||
|
|
||||||
bool cryptionChoice;
|
bool cryptionChoice{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user