encrypt /decrypt

Jul 14, 2012 at 7:03pm
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
Jul 14, 2012 at 10:10pm
Sorry, could you be a bit clearer? I dont understand what your asking
Jul 17, 2012 at 7:16pm
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.
Jul 18, 2012 at 3:25pm
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.