Which Cipher Is Represented By The Following Functionp Pre #7
Which cipher is represented by the following function?</p> <pre><code class="language-c"> 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[i][0] = (msg[i]) % 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[i][0] + 65; cout << CipherText; } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs122 Data Communication and Computer Network. It can also be found in gs gs122 Cryptography - Polyalphabetic Cipher - Quiz No.1.
Which cipher is represented by the following function?
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[i][0] = (msg[i]) % 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[i][0] + 65; cout << CipherText; }
vigenere cipher
hill cipher
keyword cipher
rotor cipher
Similar question(s) are as followings:
Online Quizzes of gs122 Data Communication and Computer Network
Sorting - Insertion Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - Insertion Sort - Quiz No.3
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - LSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.1
gs gs122 Data Communication and Computer Network
Online Quizzes
Sorting - MSD Radix Sort - Quiz No.2
gs gs122 Data Communication and Computer Network
Online Quizzes