Change from hash to digest