fix authentication - Problem was the new Buffer(digest) should be new Buffer(digest, 'binary')