Arran Cudbard-Bell wrote: > sprintf "%02x" was giving the wrong result. I'm not sure why. Likely signed / unsigned issues. <sigh> > I've switched to our own internal hex encoder which is probably faster anyway, and it gives the correct hex encoding. That's better. Alan DeKok.