Check CRC

from re import findall from zlib import crc32 as hash def crc32(fileName, val=0): for eachLine in open(fileName, "rb"): val = hash(eachLine, val) return "%X" % (val & 0xFFFFFFFF) def check_crc(fileName): return crc32(fileName) == findall('\[([0-9a-zA-Z]{8})', fileName)[0]
Check CRC from files with the following format / Revisa el CRC de los archivos con el siguiente formato
- "file_name [4ea23bc1].avi"

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.