I am generating 15 character alpha numeric codes and saving them as a MD5 hash for protection. However I cannot have non unique or colliding hashes and if they occur I do not insert them. Since I have a large number of codes that I will be inserting into database during lifetime of the app and to ensure better performance of my application I want to ensure the collision itself are less in number.
Question: What is the probability of Collisions given the input space is 36 raised to 15? (36 because I am using 26 lower case alphabets and 10 numbers and 15 because I am generating code with 15 of these).
You can refer here to understand how I am generating the codes in first place.
Usage: To use these in coupon codes and I want to hash them to protect myself from database being compromised.