Skip to content

Hashing

rn_forge.commons.fs.hashing

Content digests for detecting drift from a recorded state.

ContentHash

Content-hashing helpers for strings, bytes, and files.

of(content, *, algorithm='sha256') staticmethod

Return a hex digest of content using algorithm (default sha256).

of_file(path, *, algorithm='sha256') staticmethod

Return a hex digest of the file at path, or None if it is not a file.