Generate SHA-256 Hash

Part of Module 2 of Bitcoin Diploma →

Download the activity (PDF)

Activity TypeExperiential learning
ParticipationIndividual
Description

Participants use the My First Bitcoin SHA-256 Hash Generator to hash a message, repeat the same input, and then alter the message slightly. Comparing the results shows that identical inputs produce identical fixed-length outputs while small changes produce very different hashes, supporting later discussion of one-way hash functions and proof of work.

Objectives
  • Participants observe that SHA-256 hashes are repeatable, fixed in length, and highly sensitive to input changes.
Materials
  • Internet access.

Setup

Explain that hashing turns a digital message into a fixed-length code that acts as a unique identifier.

Procedure

Step 1

Open the SHA-256 Hash Generator and generate a hash for a string or input value.

Step 2

Generate the hash again using the same message and compare the result.

Step 3

Change the message slightly and observe that the code is completely different. Compare the lengths of hashes from differently sized inputs.

Key Points

The same message produces the same hash; small changes produce a very different hash; output length is fixed.

Notes

Use fictional, non-sensitive text only

Never paste a seed phrase, private key, password, recovery code, personal information, or a real financial record into an online hash tool.

Bitcoin Diploma assessment link: May provide the individual-response context for T2 / C2, specifically proof-of-work preparation. Use the approved protocol and required rule-and-role explanation; otherwise, this activity is formative.

Hash functions are described as one-way methods.

Additional Resources

Keywords