use new ::Digest method

::Digest::Digest was deprecated.