Change sha1 to digest.