Lines Matching refs:digest
31 - digest(): Return the digest of the bytes passed to the update() method
33 - hexdigest(): Like digest() except the digest is returned as a string
39 For example, to obtain the digest of the byte string 'Nobody inspects the
46 >>> m.digest()
136 # builtin if the current security policy blocks a digest, bpo#40695.
213 password = new(hash_name, password).digest()
220 # digest objects and just update copies to skip initialization.
224 ocpy.update(icpy.digest())
225 return ocpy.digest()
257 def file_digest(fileobj, digest, /, *, _bufsize=2**18):
258 """Hash the contents of a file-like object. Returns a digest object.
265 *digest* must either be a hash algorithm name as a *str*, a hash
270 if isinstance(digest, str):
271 digestobj = new(digest)
273 digestobj = digest()