-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKry0Steg-GUI.cpp
461 lines (420 loc) · 19.6 KB
/
Kry0Steg-GUI.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
/* Custom Headers */
#include "include/GeneralCiphers.h"
#include "include/HashFunctions.h"
#include "include/Encoders.h"
#include "include/SteganoFunctions.h"
#include "include/AppEventHandlers.h"
MyWindow::MyWindow():
mainPageBox(Gtk::Orientation::VERTICAL),
exitButton("Exit"),
/*Main Menu*/
mainMenu(Gtk::Orientation::VERTICAL),
// Section 1: Symmetric Substitution Ciphers
childBox_1(Gtk::Orientation::VERTICAL),
childBox_1_title("Symmetric Substitution Ciphers"),
caesarCipher("Caesar's Cipher"),
rot13Cipher("ROT13 Cipher"),
atbashCipher("Atbash Cipher"),
affineCipher("Affine Cipher"),
// Section 2: Hashing
childBox_2(Gtk::Orientation::VERTICAL),
childBox_2_title("Hashing"),
md5Hash("MD5"),
sha1Hash("SHA1"),
sha256Hash("SHA256"),
// Section 3: Encoders
childBox_3(Gtk::Orientation::VERTICAL),
childBox_3_title("Encoders"),
text2Hex("Hex Encoding"),
// Section 4: Stego
childBox_4(Gtk::Orientation::VERTICAL),
childBox_4_title("Steganography"),
nullCipher("Null Cipher"),
// Section 5: AES file encryption
/*Caesar's Cipher Page*/
caesarCipherPage(Gtk::Orientation::VERTICAL),
CaesarCipherPage_Encrypt("Encrypt"),
CaesarCipherPage_Decrypt("Decrypt"),
caesarCipherPage_Input_Label("Enter Plain Text or Encrypted Text"),
caesarCipherPage_Output_Label("Generated Output"),
caesarCipherPage_Key_Label("Enter Key [Default 5]"),
CaesarCipherPage_MenuButton("Menu"),
/*ROT13 Page*/
rot13CipherPage(Gtk::Orientation::VERTICAL),
Rot13CipherPage_Encrypt("Encrypt"),
Rot13CipherPage_Decrypt("Decrypt"),
rot13CipherPage_Input_Label("Enter Plain Text or Encrypted Text"),
rot13CipherPage_Output_Label("Generate Ouput"),
Rot13CipherPage_MenuButton("Menu"),
/*Atbash Page*/
atbashCipherPage(Gtk::Orientation::VERTICAL),
AtbashMagic("Atbash Magic"),
atbashCipherPage_Input_Label("Enter Plain Text or Encrypted Text"),
atbashCipherPage_Output_Label("Generated Output"),
AtbashCipherPage_MenuButton("Menu"),
/*Affine Page*/
affineCipherPage(Gtk::Orientation::VERTICAL),
AffineCipherPage_Encrypt("Encrypt"),
AffineCipherPage_Decrypt("Decrypt"),
affineCipherPage_Input_Label("Enter Plain Text or Encrypted Text"),
affineCipherPage_Output_Label("Generate Output"),
AffineCipherPage_MenuButton("Menu"),
affineCipherPage_Key_1_Label("Key A"),
affineCipherPage_Key_2_Label("Key B"),
/*MD5 page*/
md5HashPage(Gtk::Orientation::VERTICAL),
Md5HashPage_Hash("Hash"),
Md5HashPage_MenuButton("Menu"),
md5HashPage_Input_label("Enter Message for hashing"),
md5HashPage_Output_Label("Generated Output"),
/*SHA1 Page*/
sha1HashPage(Gtk::Orientation::VERTICAL),
Sha1HashPage_Hash("Hash"),
Sha1HashPage_MenuButton("Menu"),
sha1HashPage_Input_Label("Enter Message for hashing"),
sha1HashPage_Output_Label("Generated Output"),
/*SHA256 page*/
sha256HashPage(Gtk::Orientation::VERTICAL),
Sha256HashPage_Hash("Hash"),
Sha256HashPage_MenuButton("Menu"),
sha256HashPage_Input_Label("Enter Message for hashing"),
sha256HashPage_Output_Label("Generated Output"),
/*Hex Encoding*/
hexEncodingPage(Gtk::Orientation::VERTICAL),
HexEncodingPage_Encode("Encode"),
HexEncodingPage_MenuButton("Menu"),
hexEncodingPage_Input_Label("Enter Message"),
hexEncodingPage_Output_Label("Generated Output"),
/*Null cipher page*/
nullStegoPage(Gtk::Orientation::VERTICAL),
NullStegoPage_Decipher("Decipher"),
NullStegoPage_MenuButton("Menu"),
nullStegoPage_Input_Label("Enter Message"),
nullStegoPage_Output_Label("Generated Output")
/*Note: In GTK, widgets can be attached to one container at a time which
means components from one frame/page/container might not work in another
container. - https://docs.gtk.org/gtk3/method.Container.add.html*/
{
set_title("Kry0Steg GUI");
set_default_size(350, 350);
set_resizable(false);
// Spacing and margin
mainPageBox.set_margin(35);
mainPageBox.set_spacing(15);
/*Main Menu*/
mainMenu.set_spacing(25); // Space between widgets
childBox_1.set_spacing(15);
childBox_2.set_spacing(15);
childBox_3.set_spacing(15);
childBox_4.set_spacing(15);
grid.set_row_spacing(15);
grid.set_column_spacing(15);
grid.set_column_homogeneous(true);
grid.set_row_homogeneous(true);
grid_2.set_row_spacing(15);
grid_2.set_column_spacing(15);
grid_2.set_column_homogeneous(true);
grid_2.set_row_homogeneous(true);
grid_3.set_row_spacing(15);
grid_3.set_column_spacing(15);
grid_4.set_row_spacing(15);
grid_4.set_column_spacing(15);
caesarGrid.set_row_spacing(15);
caesarGrid.set_column_spacing(15);
rot13Grid.set_row_spacing(15);
rot13Grid.set_column_spacing(15);
affineGrid.set_column_spacing(15);
affineGrid.set_row_spacing(15);
/*Caesar Cipher Page*/
caesarCipherPage.set_spacing(15);
caesarCipherPage.set_margin(45);
/*Rot13 page*/
rot13CipherPage.set_spacing(15);
rot13CipherPage.set_margin(45);
/*Atbash Page*/
atbashCipherPage.set_spacing(15);
atbashCipherPage.set_margin(45);
/*Affine Page*/
affineCipherPage.set_spacing(15);
affineCipherPage.set_margin(45);
/*MD5 Page*/
md5HashPage.set_spacing(15);
md5HashPage.set_margin(45);
/*SHA1 page*/
sha1HashPage.set_spacing(15);
sha1HashPage.set_margin(45);
/*SHA256 page*/
sha256HashPage.set_spacing(15);
sha256HashPage.set_margin(45);
/*Hexcoding page*/
hexEncodingPage.set_spacing(15);
hexEncodingPage.set_margin(45);
/*Null Cipher Page*/
nullStegoPage.set_spacing(15);
nullStegoPage.set_margin(45);
// Alignemnt
mainPageBox.set_halign(Gtk::Align::BASELINE_CENTER);
mainPageBox.set_valign(Gtk::Align::BASELINE_CENTER);
childBox_1_title.set_halign(Gtk::Align::CENTER);
childBox_2_title.set_halign(Gtk::Align::CENTER);
childBox_3_title.set_halign(Gtk::Align::CENTER);
childBox_4_title.set_halign(Gtk::Align::CENTER);
grid_3.set_halign(Gtk::Align::CENTER);
grid_4.set_halign(Gtk::Align::CENTER);
caesarGrid.set_halign(Gtk::Align::CENTER);
rot13Grid.set_halign(Gtk::Align::CENTER);
affineGrid.set_halign(Gtk::Align::CENTER);
// Attach and align widgets on the grid
grid.attach(caesarCipher, 3,0);
grid.attach(rot13Cipher, 5,0);
grid.attach(atbashCipher, 3,1);
grid.attach(affineCipher, 5,1);
grid_2.attach(md5Hash, 4,0);
grid_2.attach(sha1Hash, 6,0);
grid_2.attach(sha256Hash, 8,0);
grid_3.attach(text2Hex,4,0);
grid_4.attach(nullCipher, 4,0);
caesarGrid.attach(CaesarCipherPage_Encrypt, 2,1);
caesarGrid.attach(CaesarCipherPage_Decrypt, 4,1);
rot13Grid.attach(Rot13CipherPage_Encrypt, 2,1);
rot13Grid.attach(Rot13CipherPage_Decrypt, 4,1);
affineGrid.attach(AffineCipherPage_Encrypt, 2, 1);
affineGrid.attach(AffineCipherPage_Decrypt, 4, 1);
// Button customization
caesarCipher.set_size_request(20,45);
// rot13Cipher.set_size_request(50,70);
// atbashCipher.set_size_request(50,70);
// affineCipher.set_size_request(50, 70);
md5Hash.set_size_request(20,45);
// sha1Hash.set_size_request(50,70);
// sha256Hash.set_size_request(50,70);
text2Hex.set_size_request(50,70);
nullCipher.set_size_request(50,70);
CaesarCipherPage_Encrypt.set_size_request(50,70);
CaesarCipherPage_Decrypt.set_size_request(50,70);
Rot13CipherPage_Encrypt.set_size_request(50, 70);
Rot13CipherPage_Decrypt.set_size_request(50, 70);
AffineCipherPage_Encrypt.set_size_request(50, 70);
AffineCipherPage_Decrypt.set_size_request(50, 70);
CaesarCipherPage_MenuButton.set_size_request(30,30);
AtbashMagic.set_size_request(50, 70);
Md5HashPage_Hash.set_size_request(50, 70);
Sha1HashPage_Hash.set_size_request(50, 70);
Sha256HashPage_Hash.set_size_request(50, 70);
HexEncodingPage_Encode.set_size_request(50, 70);
NullStegoPage_Decipher.set_size_request(50, 70);
// caesarCipher.set_hexpand(false);
// rot13Cipher.set_hexpand(false);
// atbashCipher.set_hexpand(false);
// affineCipher.set_hexpand(false);
md5Hash.set_hexpand(false);
sha1Hash.set_hexpand(false);
sha256Hash.set_hexpand(false);
// rot13Cipher.set_vexpand(false);
// caesarCipher.set_vexpand(false);
// atbashCipher.set_vexpand(false);
// affineCipher.set_vexpand(false);
md5Hash.set_vexpand(false);
sha1Hash.set_vexpand(false);
sha256Hash.set_vexpand(false);
// Textviews & Text wraps
inputBuffer = Gtk::TextBuffer::create();
outputBuffer = Gtk::TextBuffer::create();
CaesarCipherInputView.set_buffer(inputBuffer);
CaesarCipherOutputView.set_buffer(outputBuffer);
Rot13CipherInputView.set_buffer(inputBuffer);
Rot13CipherOutputView.set_buffer(outputBuffer);
AtbashCipherInputView.set_buffer(inputBuffer);
AtbashCIpherOutputView.set_buffer(outputBuffer);
AffineCipherInputView.set_buffer(inputBuffer);
AffineCipherOutputView.set_buffer(outputBuffer);
Md5HashInputView.set_buffer(inputBuffer);
Md5HashOutputView.set_buffer(outputBuffer);
Sha1HashInputView.set_buffer(inputBuffer);
Sha1HashOutputView.set_buffer(outputBuffer);
Sha256HashInputView.set_buffer(inputBuffer);
Sha256HashOutputView.set_buffer(outputBuffer);
HexEncodingInputView.set_buffer(inputBuffer);
HexEncodingOutputView.set_buffer(outputBuffer);
NullStegoInputView.set_buffer(inputBuffer);
NullStegoOutputView.set_buffer(outputBuffer);
CaesarCipherInputView.set_size_request(250, 100);
CaesarCipherOutputView.set_size_request(250, 100);
Rot13CipherInputView.set_size_request(250, 100);
Rot13CipherOutputView.set_size_request(250, 100);
AtbashCipherInputView.set_size_request(250, 100);
AtbashCIpherOutputView.set_size_request(250, 100);
AffineCipherInputView.set_size_request(250, 100);
AffineCipherOutputView.set_size_request(250,100);
Md5HashInputView.set_size_request(250, 100);
Md5HashOutputView.set_size_request(250, 100);
Sha1HashInputView.set_size_request(250, 100);
Sha1HashOutputView.set_size_request(250, 100);
Sha256HashInputView.set_size_request(250, 100);
Sha256HashOutputView.set_size_request(250, 100);
HexEncodingInputView.set_size_request(250, 100);
HexEncodingOutputView.set_size_request(250, 100);
NullStegoInputView.set_size_request(250, 100);
NullStegoOutputView.set_size_request(250, 100);
CaesarCipherInputView.set_wrap_mode(Gtk::WrapMode::WORD);
CaesarCipherOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
Rot13CipherInputView.set_wrap_mode(Gtk::WrapMode::WORD);
Rot13CipherOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
AtbashCipherInputView.set_wrap_mode(Gtk::WrapMode::WORD);
AtbashCIpherOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
AffineCipherInputView.set_wrap_mode(Gtk::WrapMode::WORD);
AffineCipherOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
Md5HashInputView.set_wrap_mode(Gtk::WrapMode::WORD);
Md5HashOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
Sha1HashInputView.set_wrap_mode(Gtk::WrapMode::WORD);
Sha1HashOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
Sha256HashInputView.set_wrap_mode(Gtk::WrapMode::WORD);
Sha256HashOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
HexEncodingInputView.set_wrap_mode(Gtk::WrapMode::WORD);
HexEncodingOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
NullStegoInputView.set_wrap_mode(Gtk::WrapMode::WORD);
NullStegoOutputView.set_wrap_mode(Gtk::WrapMode::WORD_CHAR);
// SpinButton
CaesarCipherKeyInput.set_adjustment(Gtk::Adjustment::create(5,0,25));
// adjusts spin buttons numeric range from 0 to 25 with defualt being 5
AffineCipherKeyInput_1.set_adjustment(Gtk::Adjustment::create(5,0,25));
AffineCipherKeyInput_2.set_adjustment(Gtk::Adjustment::create(5,0,25));
/* Append widgets to child container */
childBox_1.append(childBox_1_title);
childBox_1.append(grid);
childBox_2.append(childBox_2_title);
childBox_2.append(grid_2);
childBox_3.append(childBox_3_title);
childBox_3.append(grid_3);
childBox_4.append(childBox_4_title);
childBox_4.append(grid_4);
// Caesar Cipher Page
caesarCipherPage.append(caesarCipherPage_Input_Label);
caesarCipherPage.append(CaesarCipherInputView);
caesarCipherPage.append(caesarCipherPage_Key_Label);
caesarCipherPage.append(CaesarCipherKeyInput);
caesarCipherPage.append(caesarGrid);
caesarCipherPage.append(caesarCipherPage_Output_Label);
caesarCipherPage.append(CaesarCipherOutputView);
caesarCipherPage.append(CaesarCipherPage_MenuButton);
// Rot13 page
rot13CipherPage.append(rot13CipherPage_Input_Label);
rot13CipherPage.append(Rot13CipherInputView);
rot13CipherPage.append(rot13Grid);
rot13CipherPage.append(rot13CipherPage_Output_Label);
rot13CipherPage.append(Rot13CipherOutputView);
rot13CipherPage.append(Rot13CipherPage_MenuButton);
// Atbash
atbashCipherPage.append(atbashCipherPage_Input_Label);
atbashCipherPage.append(AtbashCipherInputView);
atbashCipherPage.append(AtbashMagic);
atbashCipherPage.append(atbashCipherPage_Output_Label);
atbashCipherPage.append(AtbashCIpherOutputView);
atbashCipherPage.append(AtbashCipherPage_MenuButton);
// Affine
affineCipherPage.append(affineCipherPage_Input_Label);
affineCipherPage.append(AffineCipherInputView);
affineCipherPage.append(affineCipherPage_Key_1_Label);
affineCipherPage.append(AffineCipherKeyInput_1);
affineCipherPage.append(affineCipherPage_Key_2_Label);
affineCipherPage.append(AffineCipherKeyInput_2);
affineCipherPage.append(affineGrid);
affineCipherPage.append(AffineCipherOutputView);
affineCipherPage.append(AffineCipherPage_MenuButton);
// MD5
md5HashPage.append(md5HashPage_Input_label);
md5HashPage.append(Md5HashInputView);
md5HashPage.append(Md5HashPage_Hash);
md5HashPage.append(md5HashPage_Output_Label);
md5HashPage.append(Md5HashOutputView);
md5HashPage.append(Md5HashPage_MenuButton);
// SHA1
sha1HashPage.append(sha1HashPage_Input_Label);
sha1HashPage.append(Sha1HashInputView);
sha1HashPage.append(Sha1HashPage_Hash);
sha1HashPage.append(sha1HashPage_Output_Label);
sha1HashPage.append(Sha1HashOutputView);
sha1HashPage.append(Sha1HashPage_MenuButton);
// SHA256
sha256HashPage.append(sha256HashPage_Input_Label);
sha256HashPage.append(Sha256HashInputView);
sha256HashPage.append(Sha256HashPage_Hash);
sha256HashPage.append(sha256HashPage_Output_Label);
sha256HashPage.append(Sha256HashOutputView);
sha256HashPage.append(Sha256HashPage_MenuButton);
// Hexcoding
hexEncodingPage.append(hexEncodingPage_Input_Label);
hexEncodingPage.append(HexEncodingInputView);
hexEncodingPage.append(HexEncodingPage_Encode);
hexEncodingPage.append(hexEncodingPage_Output_Label);
hexEncodingPage.append(HexEncodingOutputView);
hexEncodingPage.append(HexEncodingPage_MenuButton);
// NullStego page
nullStegoPage.append(nullStegoPage_Input_Label);
nullStegoPage.append(NullStegoInputView);
nullStegoPage.append(NullStegoPage_Decipher);
nullStegoPage.append(nullStegoPage_Output_Label);
nullStegoPage.append(NullStegoOutputView);
nullStegoPage.append(NullStegoPage_MenuButton);
// Append child container to main containers
// mainPageBox.append(childBox_1);
// mainPageBox.append(childBox_2);
mainMenu.append(childBox_1);
mainMenu.append(childBox_2);
mainMenu.append(childBox_3);
mainMenu.append(childBox_4);
mainMenu.append(exitButton);
mainPageBox.append(pageStack);
mainPageBox.append(stackSwitch);
pageStack.add(mainMenu, "menu", "Menu");
pageStack.add(caesarCipherPage, "page1", "Caesar Cipher");
pageStack.add(rot13CipherPage, "page2", "ROT13");
pageStack.add(atbashCipherPage, "page3", "Atbash");
pageStack.add(affineCipherPage, "page4", "Affine");
pageStack.add(md5HashPage, "page5", "MD5");
pageStack.add(sha1HashPage, "page6", "SHA1");
pageStack.add(sha256HashPage, "page7", "SHA256");
pageStack.add(hexEncodingPage, "page8", "Hex Encoding");
pageStack.add(nullStegoPage, "page9", "Stego - Null Cipher");
set_child(mainPageBox);
/* Connecting Signals */
// Page Switching
caesarCipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::caesar_page_click));
rot13Cipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::rot13_page_click));
atbashCipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::atbash_page_click));
affineCipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::affine_page_click));
md5Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::md5_page_click));
sha1Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::sha1_page_click));
sha256Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::sha256_page_click));
text2Hex.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::hex_page_click));
nullCipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::stegoNull_page_click));
exitButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::exit_event_click));
// Back-2-Menu
CaesarCipherPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
Rot13CipherPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
AtbashCipherPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
AffineCipherPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
Md5HashPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
Sha1HashPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
Sha256HashPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
HexEncodingPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
NullStegoPage_MenuButton.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::MenuButton_click));
// Button press event handling
CaesarCipherPage_Encrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::caesar_encrypt_click));
CaesarCipherPage_Decrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::caesar_decrypt_click));
Rot13CipherPage_Encrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::rot13_encrypt_click));
Rot13CipherPage_Decrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::rot13_decrypt_click));
AtbashMagic.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::atbash_magic_click));
AffineCipherPage_Encrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::affine_encrypt_click));
AffineCipherPage_Decrypt.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::affine_decrypt_click));
Md5HashPage_Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::md5_hash_click));
Sha1HashPage_Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::sha1_hash_click));
Sha256HashPage_Hash.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::sha256_hash_click));
HexEncodingPage_Encode.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::hex_encode_click));
NullStegoPage_Decipher.signal_clicked().connect(sigc::mem_fun(*this, &MyWindow::null_decipher_click));
}
// Entry Point
int main(int argc, char *argv[]){
auto app = Gtk::Application::create("org.gtkmm.kry0steg");
return app->make_window_and_run<MyWindow>(argc, argv);
}