HTTP digest calculation in ruby