The number of possible inputs, however, is infinite, meaning some inputs will hash to the same output. After all, the output of SHA-256 is always 256 bits long, which means it has a fixed size. ![]() It’s worth noting that the output of a hash is “almost unique” because there are a finite number of output strings. If we changed even a single letter in the book, the output hash would be wildly different. For example, if we were to hash the entire text of JRR Tolkien’s “The Lord of The Rings” series using the SHA 256 algorithm, we would get a 256-bit output unique to that book’s text. SHA-256 is a standard hash function, so the real question is, “what’s a hash function”?Ī cryptographic hash function generates a “fingerprint” of an input string.
0 Comments
Leave a Reply. |