mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
12 lines
239 B
Python
12 lines
239 B
Python
|
#!/usr/bin/env python
|
||
|
import os, sys
|
||
|
import zlib
|
||
|
|
||
|
def crc32(fileName):
|
||
|
prev = 0
|
||
|
for eachLine in open(fileName,"rb"):
|
||
|
prev = zlib.crc32(eachLine, prev)
|
||
|
return "%X"%(prev & 0xFFFFFFFF)
|
||
|
|
||
|
print(crc32(sys.argv[1]).lower())
|