77 std::string text1 =
"Whipalsh! : Do watch this movie...";
78 std::string encrypted1 = ciphers::XOR::encrypt(text1, 17);
79 std::string decrypted1 = ciphers::XOR::decrypt(encrypted1, 17);
80 assert(text1 == decrypted1);
81 std::cout <<
"Original text : " << text1;
82 std::cout <<
" , Encrypted text (with key = 17) : " << encrypted1;
83 std::cout <<
" , Decrypted text : "<< decrypted1 << std::endl;
85 std::string text2 =
"->Valar M0rghulis<-";
86 std::string encrypted2 = ciphers::XOR::encrypt(text2, 29);
87 std::string decrypted2 = ciphers::XOR::decrypt(encrypted2, 29);
88 assert(text2 == decrypted2);
89 std::cout <<
"Original text : " << text2;
90 std::cout <<
" , Encrypted text (with key = 29) : " << encrypted2;
91 std::cout <<
" , Decrypted text : "<< decrypted2 << std::endl;