Professional Documents
Culture Documents
Code:
#include <stdio.h>
int main() {
char message[100];
int choice, key;
switch (choice)
{
case 1:
printf("Enter the key for encryption: ");
scanf("%d", &key);
encryptMessage(message, key);
break;
case 2:
printf("Enter the key for decryption: ");
scanf("%d", &key);
decryptMessage(message,key);
break;
case 3:
cryptoAnalysis(message);
break;
default: printf("Invalid
Choice!"); break;
}
return 0;
}
HEMANTHNAIK 012200300004042
Output:
a)Capital Letters:
1. Encryption:
2. Decryption:
3. Cryptanalysis:
HEMANTHNAIK 012200300004042
HEMANTHNAIK 012200300004042
b)Small Letters:
1. Encryption:
2. Decryption:
HEMANTHNAIK 012200300004042
3. Cryptanalysis: