On Dec 11, 2006, at 10:31 PM, Dane Jensen wrote: > I'm willing to bet there's something horribly wrong with my code, > but have just been staring at it far too much to see it. Any help > would be hugely appreciated. Yep. There was. I wish I could claim to have found it, but it was a friend that came to the rescue. Ruby's Base64 appends a newline, while PHP's does not. > print base64_encode(pack('H*',md5("Bruce2:OhBehave"))); > => PtEdr8lBQ45IbT1bZIkrOQ== > vs. > >> Base64.encode64(MD5.digest("Bruce2:OhBehave")) > => "PtEdr8lBQ45IbT1bZIkrOQ==\n" -Dane