INNER CODE UNIT · Python

file_as_bytes

fyoorer/ShadowClone · hasher.py:3

def file_as_bytes(file):
    with file:
        return file.read()

def perform_hashing(fname):
    return hashlib.md5(file_as_bytes(open(fname, 'rb'))).hexdigest()
    

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…