encrypt /decrypt

guyzz a string and a integer or any other values can be encryped if data type is same but what bout when we have all the type of data to be encrypted
Sorry, could you be a bit clearer? I dont understand what your asking
Well uh, if I understand....

You could just convert everything into strings, and if you ever need to convert it back you could use stringstream, yet, like Owain, I am not sure what you are talking about....

Maybe he means have integers in strings, or floats in strings? O.o I don't know, lawl.
really simple. say you have this as a string
char * say="EMIN3M$$$***"
you could encrypt it like this
1
2
3
4
for(int i=0;i<strlen(say);i++)
{
     say[i]=say[i]+3;
}

to decrypt it back, just repeat with -3..
Topic archived. No new replies allowed.