When generating a SHA256 / 512 hash, is there a minimum 'safe' amount of data to hash?
I have heard that when creating a hash, it's possible that if small files or amounts of data are used, the resulting hash is more likely to suffer from a collision. If that is true, is there a minimum "safe" amount of data that should be used to ensure this doesn't happen? I guess the question could also be phrased as: What is the smallest amount of data that can be safely and securely hashed? A hash function accepts inputs of arbitrary (or at least very high) length, and produces a fixed-length output. There are more possible inputs than possible outputs, so collisions must exist. The whole