write an algorithm in c++ to attack caesar cipher ,knowing the plain text & the cipher text
1
Expert's answer
2016-09-16T09:24:03-0400
#include <iostream> using std::cout; using std::cin; using std::endl; #include <fstream> using std::ifstream; using std::ofstream; #include <string> using std::string;
bool is_equals(const string& a, const string& b) { unsigned int sz = a.size(); if (b.size() != sz) return false; for (unsigned int i = 0; i < sz; ++i) if (tolower(a[i]) != tolower(b[i])) return false; return true; }
Comments
Leave a comment