Sha1 substring question

unreal17

New Member
I am making a pastebin type site and am trying to make the id be a random string like paste.com/4RT65LI am getting the sha1 of the id before i add it to the database but i am getting the substring of the first 8 characters of the sha1. is their a possibility of their being a double copy of the same sha1? I dont want their to accidentaly be a second paste with an id that has already been used?
 
Back
Top