This is my first ever question on StackOverflow so if I do something wrong don't go too hard on me. Anyways, I have found a certain encryption in a C file I was looking in and I have the decryption code but I have no clue on how to reverse it so I can encrypt my own string into it.
int r;
char str[] = {"4:;145;14;81583"};
for(r = 0; (r < 100 && str[r] != '\0'); r++)
str[r] = str[r] - 3;
The encrypted string (4:;145;14;81583) is the IP 178.128.185.250 Like I said, I am wondering how to reverse the decryption method so that I can encrypt my own strings. Help?
str[r] != '\0') or at maximum 100 chars (i.e.r < 100) I have no idea why the max of 100 chars is added. Seems like pure nonsense