Could really do with the above code being converted into php, one question thats stopping me doing it myself is how can I get the byte blocks in a language that only gives me $varCode:private static String decrypt2(long message,int key1,int key2){ StringBuffer output=new StringBuffer(); message=message^key1; int length=(byte)(message); byte input[]=new byte[length]; for (int i=length-1;i>=0;i--){ message=message>>8; input[i]=(byte)(message^key2); } for (int i=0;i<length;i++){ output.append((char)input[i]); //System.out.println("\toutput: "+(byte)input[i]); } return output.toString(); }
Thanks for any help
Social Networking Bookmarks