void Cipher(string msg, string key)
{
// Get key matrix from the key string
int keyMat[3][3];
getKeyMatrix(key, keyMat);
int msgVector[3][1];
for (int i = 0; i <=2; i++)
msgVector[0] = (msg) % 65;
int cipherMat[3][1];
// Following function generates
// the encrypted vector
encrypt(cipherMat, keyMat, msgVector);
string CipherText;
for (int i = 0; i <=2; i++)
CipherText += cipherMat[0] + 65;
cout << CipherText;
}
a) vigenere cipher
b) hill cipher
c) keyword cipher
d) rotor cipher
Which cipher is represented by the following function?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which cipher is represented by the following function?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!