If I use SHA256 as a hash function, and I try all inputs starting from 0 to 2^256 (means all possible combination of 256-bit), then will it give me 2^256 unique output without any collision?

Or in other words, does 2^256 different inputs maps to 2^256 different output in SHA256?


marked as duplicate by CodesInChaos Jan 24 '17 at 11:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.