hashlib.md5 returns a weird object and indexing is also strange
Advertisements So I wanted to get to know how hashlib.md5 works and produced the following code: import hashlib a = b’yolo’ h = hashlib.md5(a).digest() b = h[6:10] print(h) print(b) Don’t mind the fact that I used "yolo" as a string. This is just for testing. Now when running this code, it produces b’O\xde\xd1FG6\xe7xe\xdf#,\xbc\xb4\xcd\x19′ b’\xe7xe\xdf’ which… Read More hashlib.md5 returns a weird object and indexing is also strange