Converts binary string hash into integers