Hello,
is there a way to calculate the MD5 hash for a huge file using chunks?
For CRC32StringMBS I've this example that uses chunks:
b = f.OpenAsBinaryFile( false )
crc=0
data=b.read(1024*1024) '**read 1MB Chunks
while data<>""
crc=CRC32StringMBS(crc, data) 'CRC32 for all chunks
data=b.read(1024*1024) 'read next 1MB Chunk
wend
For MD5StringMBS I've only found a sample that suggests to read the entire
file like this:
b = f.OpenAsBinaryFile( false )
data=b.read(b.Length) '> 1GB ?
md=MD5StringMBS (data)
This is problematic if you need the MD5 for huge files (> 1GB)
So is there a way to calculate the MD5 value for a file using chunks (like
with CRC32) instead of reading 1GB or 10 GB into a string variable... ?
I use Windows XP and Plugins 11.3
thanks
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info