Understanding the SHA256 hashing function

The SHA256 hashing function takes in any string of text, hashes that text, and returns a fixed-length hashed string.

To get a better understanding of what hash data looks like, visit https://passwordsgenerator.net/sha256-hash-generator/. This is a hash generator. If you input any text into the text box, you will get hash data as the output.

For example, if we put CodingJavaScript into the textbox, the hash that is returned to us will look like the one highlighted in the following screenshot: 

The output hash that we can observe in the preceding screenshot seems arbitrary, and thus helps in keeping ...

Get Learn Blockchain Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.