2.1 Welcome to MD5

Welcome to MD5

Compute more digests. Try computing the MD5 sum of the following inputs: * b’alice’, * b’bob’, * b’balice’, * b’cob’, * b’a’, * b’aa’, * b’aaaaaaaaaa’, * b’a’*100000


>>> import hashlib
>>> all_data = [b'alice', b'bob', b'balice', b'cob', b'a', b'aa', b'aaaaaaaaaa', b'a'*100_000]
>>> for single_data in all_data:
...     print("{} {}".format(hashlib.md5(single_data).hexdigest(), single_data[0:15]))
...
6384e2b2184bcbf58eccf10ca7a6563c b'alice'
9f9d51bc70ef21ca5c14f307980a29d8 b'bob'
6760742ebf884c998752b4e082b78224 b'balice'
386685f06beecb9f35db2e22da429ec9 b'cob'
0cc175b9c0f1b6a831c399e269772661 b'a'
4124bc0a9335c27f086f24ba207a4912 b'aa'
e09c80c42fda55f9d992e59ca6b3307d b'aaaaaaaaaa'
1af6d6f2f682f76f80e606aeaaee1680 b'aaaaaaaaaaaaaaa'
>>>