• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

Php Question

Junior Spellweaver
Joined
Jan 15, 2013
Messages
153
Reaction score
4
I have a doubt,
I wonder how to turn this to php.

private static void byteEncrypt(byte data[]){
for(int i = 0 ; i < BYTE.LENGHT ; i++){
if(i % 2 == 0){
data ^= XOR0;
}else{
data ^= XOR1;
}
}
}

thx
 
Back
Top