Hi there!
me here again...
I have been trying to make encrypter that just goes forward on alphabets.
but at certain point alphabets run out and the program starts using some special charecters, for me thats ok. but for my decrypter its not.
the decrypter looks at them and just skippes them over when i try to minus the number that i went forward on alphabets.
So my question is:
Is there way to make my decrypter reconise these marks and minus the number that i went forward?
Heres some code:
#include "decoder.h"
int decoder(int * x)
{
int d;
int i = 0;
int b = *x;
while(i < 1)
{
if(b > 20)
{
b = 0;
}
switch(b)
{
case 0:
d = 3+9-12+2;
break;
case 1:
d = 8+8/2;
break;
case 2:
d = 5+5-4+6/2;
break;
case 3:
d = 2+2+6/2;
break;
case 4:
d = 6+4+6+2/2;
break;
case 5:
d = 2+70-60-4/2;
break;
case 6:
d = 3+6/3;
break;
case 7:
d = 5+5-10+3+7/10;
break;
case 8:
d = 7+4+3/2;
break;
case 9:
d = 15+25+40+20/10;
break;
case 10:
d = 5+3+2+3;
break;
case 11:
d = 9+4+7-1;
break;
case 12:
d =5+100+15+10+20/10;
break;
case 13:
d = 12+12+10/2;
break;
case 14:
d = 5+5+30/2;
break;
case 15:
d = 8+8-4-1;
break;
case 16:
d = 9+4+7+10-12;
break;
case 17:
d = 28-7-7;
break;
case 18:
d = 6+12-6;
break;
case 19:
d = 32+64-32-32/2;
break;
}
b++;
i++;
}
*x = b;
return b;
}
So theres the long code
incase you forgot what I wanted to know:
is there way to make the program recognise special charecters or do i need to go
and change the encrypter code and prevent it that way going into special
charecters?
thanks in advance!