From: Ben Summers Date: 2008-03-01T05:53:26+09:00 Subject: Re: problem writing inverse to java xor encoding function Ben Summers wrote: > >> But I just had a thought, it's possible the Java app only uses one set >> key, I'll see if that's the case and then I could just hard-code it in. > > Argh, the 'key' is different every time. OK, I just needed to change where it started, ie. the two lines: ecx = bytes2int(buf[size-4,4]) pos=size-8 to: ecx = bytes2int(buf[size-8,4]) pos=size-12 I can't believe, it works perfectly now. -- Posted via http://www.ruby-forum.com/.