Oddbean new post about | logout
 no, the chances of a hash collision from different files is so small as to be practically zero

the hash does not reveal anything unless you know where to find it

and the short codes you already use are way more likely to have a collision than a full 32 byte, 64 character hexadecimal (or shorter bech32) - now, those hashes, yes, they can collide much more easily, but even still they are at least 48 bits by my estimation which is far far less than a full 32 byte, 256 bit hash 
 I am not sure if I said it clearly, but what I mean is that identical files do coexist in the same account. User uploads same image more than once.🐶🐾🫡 
 if you stored them by hash you could deduplicate them 
 also, if you mean "how do i have multiple filenames refer to one file" it's called a hard link 
 https://www.baeldung.com/linux/files-replace-duplicates 
 yes, in the case where you want the user to be able to change the different named files independently then you can't do this but if they are basically immutable then it doesn't matter