def make_checksum(header_path, footer_path): ls = LocalFileStorage() footer = footer_path and ls._open(footer_path).read() or '' raw_checksum = ls._open(header_path).read() + footer return hashlib.sha224(raw_checksum).hexdigest()
def make_checksum(header_path): ls = LocalFileStorage() raw_checksum = ls._open(header_path).read() return hashlib.sha224(raw_checksum).hexdigest()