Hi guys, i'm supposed to complete an assignment to get the following : btw, IET = initial encrypted text while FET is final encrypted text. Appreciate your help please.
Please enter a 4 digit key : 1234
Please enter a plain text : S
Plaintext : S IET : T FET : p
Please enter a plain text : P
plaintext : P IET : T FET p
Please enter a plain text : _
plaintext : _ IET :h :FET L
each key has to be squared. for example 4 =16, 3=9, and so on and so forth to get the FET.
This is what i've done so far. My group's name is SP_MS6508 and the IET is TTh]T:>@9
And the FET shold be ppLyp▲>@↔
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
char shuffle(char i);
int main()
{
int i;
int j;
int o;
int w,x,y,z;
string groupname;
char IET[13];
char FET[13];
j=0;
cout<<"Please enter your 4 digit code code"<<endl;
cin>>o;
w=(o/1000);
x=(o-w*1000)/100;
y=(o-w*1000-x*100)/10;
z=(o-w*1000-x*100-y*10);
cout<<"please enter your group name"<<endl;
cin>>groupname;
i=groupname.length();
for(int j=0; j<i; j++)
{
if(j%4==0)
{