Does someone have any experience of calculating checksums by Python, in the RAM? Say a string variable, or some other "medium sized" data structure? I am thinking primarily CRC, or possibly even MD5. If not realistic, something even simpler, like LRC, to detect possible unintentional alterations in the memory, or while in transit.
My major concern is the calculation speed of the Python engine. And I would be grateful of any script examples to do the job.
Thanks,
Tom
md5 is a built-in module!
Oops, I have completely missed this. Thank you Cosmin. Shall make a test run.
But still, does anyone have some experience (and sample scripts) of "lighter" checksum methods, like LRC or CRC? I anticipate md5 to be slow…
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi all
Does someone have any experience of calculating checksums by Python, in the RAM? Say a string variable, or some other "medium sized" data structure? I am thinking primarily CRC, or possibly even MD5. If not realistic, something even simpler, like LRC, to detect possible unintentional alterations in the memory, or while in transit.
My major concern is the calculation speed of the Python engine. And I would be grateful of any script examples to do the job.
Thanks,
Tom
md5 is a built-in module!
Oops, I have completely missed this. Thank you Cosmin. Shall make a test run.
But still, does anyone have some experience (and sample scripts) of "lighter" checksum methods, like LRC or CRC? I anticipate md5 to be slow…
Tom