PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have been given a file that is simply encrypted that I need to decode. I have permission to decode this file. I am trying to do this decoding on a server with PHP. Basically the decode algorithim would function something like this: each 3 digit ascii code in the file takes the last of the 3 digit ascii codes, add that value to the code, and then converts the result to an a character. Has anyone seen this done, have code to do this already, or know of any good resources?
Hey guys - thanks for your comments; i used the chr() and ord() functions. I am still working on the manipulation the actual values - but have a script now i wrote that can do what i need. thanks again for the help!
By the way, the encryption sounds pretty weak, a good method involves something that requires a private key to decrypt the string, such as xor'ing each character with a value from the private key