sha256 is an algorithm to map a string of any length to a 256bit string(so called hash). The input of the algorithm is a string of any length but the output of the algorithm is of fixed length 256bit.

sha256 is an algorithm to map a string of any length to a 256bit string(so called hash). The input of the algorithm is a string of any length but the output of the algorithm is of fixed length 256bit.