CS
CS
#include <bits/stdc++.h>
using namespace std;
unordered_map<char,char> hashMap;
return ciphertext;
}
return plaintext;
}
int main()
{
string alphabet = "abcdefghijklmnopqrstuvwxyz";
string substitution = "qwertyuiopasdfghjklzxcvbnm";
string msg = "absdhj";
hashFn(alphabet, substitution);
hashFn(substitution, alphabet);
string plain = decrypt(cipher);
cout<<"Decrypted Plain Text: "<<plain<<endl;
}
//polyalphabetic cipher
#include<bits/stdc++.h>
using namespace std;
string generateKey(string str, string key)
{
int x = str.size();
cipher_text.push_back(x);
}
return cipher_text;
}
int main()
{
string str = "IAMBOSS";
string keyword = "LOL";
return result;
}
int main()
{
string message = "HELLOWORLD";
string key = "231";
char mat[4][3];
cout<<"Message: "<<message<<endl;
cout<<"Key: "<<key<<endl;
cout<<"Cipher: ";
string cipher = encrypt(key, mat);
cout<<cipher;
return 0;
}