I want to create a unique hash for a given string and I was wondering if there is a difference in duplicate hashes for md5 and sha1.
Lets for the sake of argument assume the following code:
foo = "gdfgkldng"
bar = "fdsfdsf"
md5(foo)
>>>> "25f709d867523ff6958784d399f138d9"
md5(bar)
>>>> "25f709d867523ff6958784d399f138d9"
Is there a difference in the probability of this occurring between sha1 and md5? Also: if I use strings that have a big overlap ("blabla1", "blabla2") is there a difference?
BTW. I am not interested in the security of the algorithms I just want to create a hash that is as unique as possible.