The Python Oracle

Generating an MD5 checksum of a file

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ocean Floor

--

Chapters
00:00 Question
00:28 Accepted answer (Score 635)
01:13 Answer 2 (Score 329)
03:38 Answer 3 (Score 36)
06:23 Answer 4 (Score 30)
07:03 Thank you

--

Full question
https://stackoverflow.com/questions/3431...

Accepted answer links:
[hashlib.md5()]: http://docs.python.org/library/hashlib.h...

Answer 2 links:
[MD5 is known broken]: https://en.wikipedia.org/wiki/MD5#Collis...
[recent flaws discovered in SHA1]: https://en.wikipedia.org/wiki/SHA-1#SHAt...

Answer 4 links:
[assignment operator]: https://docs.python.org/3/whatsnew/3.8.h...
[hashlib]: https://docs.python.org/3/library/hashli...
[hashlib.blake2b]: https://docs.python.org/library/hashlib....
[faster]: https://blake2.net/

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #md5 #checksum #hashlib

#avk47