Hey can someone help out here so it can encrypt and decrypt, i've been trying to figure it for a while and I can encrypt but I can decrypt, help would be appreciated. Thanks
CODE::
cout<<"Enter something you want to encrypt: "<<endl;
cin.get(user, 256);
cin.ignore(80, '\n');
string_length=strlen(user);
do
{
user[x];
l++; x++;
}
while(x!=string_length);
cout<<endl;
cout<<"Encrypted: "<<endl;
cout<<endl;
cout<<user<<endl;
cout<<endl;
cout<<"Press any key to continue"<<endl;
int wait= getch();
clrscr();
cout<<"Would you like to decrypt it? 1 = yes / 0 = no"<<endl;
cin >>user_choice;
if (user_choice==1)
{
x=0; l=33;
cout<<"Test"<<endl;
do
{
user[x]=l;
l--; x++;
}
while(x!=string_length);