SHA-256 Explained

๐Ÿ“– 5 min read

โœ๏ธ Ditulis & disemak oleh Karel Havlรญฤekdikemas kini 2026๐Ÿ›ก๏ธ Bebas dari segi editorial

Quick Answer

SHA-256 is the cryptographic "fingerprint machine" at the heart of Bitcoin. Feed it any data and it returns a fixed 64-character code that is unique to that data, impossible to reverse, and changes completely if you alter even one letter.

๐Ÿ’ก Think of it asโ€ฆ

Pengisar yang mengubah mana-mana hidangan menjadi smoothie yang unik. Daripada smoothie, anda tidak boleh membina semula bahan asal โ€” tetapi jika seseorang memberi anda hidangan yang sama, anda akan sentiasa mendapat smoothie yang sama. Sifat sehala dan boleh berulang itulah yang menjadikan pencincangan berguna.

What a hash actually is

Fungsi cincang mengambil sebarang input โ€” perkataan, fail, keseluruhan blok โ€” dan mengeluarkan rentetan panjang tetap. SHA-256 sentiasa mengeluarkan 256 bit (64 aksara heks), sama ada input adalah satu huruf atau gigabait.

Three properties that matter

It is deterministic (same input โ†’ same output), one-way (you cannot work backwards to the input), and collision-resistant (it is practically impossible to find two inputs with the same output). The tiniest change to the input produces a totally different hash.

Bagaimana Bitcoin menggunakannya

Hashes memautkan blok bersama-sama, memampatkan urus niaga ke dalam pokok Merkle dan mentakrifkan teka-teki perlombongan: pelombong berlumba-lumba mencari blok yang cincangnya bermula dengan sifar yang mencukupi. Oleh kerana anda tidak boleh meramalkan cincangan, satu-satunya cara untuk menang ialah mencuba bertrilion kali โ€” iaitu Bukti Kerja.

๐Ÿ”‘ Key takeaway

SHA-256 turns any data into a unique, irreversible fingerprint. It is the glue that links the blockchain and the puzzle that miners must solve.

Why this matters for you

You never touch SHA-256 directly, but it is what makes the Bitcoin you buy on Coins.ph, Upbit or Tokocrypto impossible to counterfeit. It is the math that lets strangers across borders trust the same ledger.

Soalan lazim

Bolehkah SHA-256 diterbalikkan atau retak?โ–ผ

No practical method exists to reverse it or find collisions. It would take longer than the age of the universe with todayโ€™s computers, which is why it is trusted to secure trillions of dollars.

Will quantum computers break SHA-256?โ–ผ

Fungsi cincang seperti SHA-256 dianggap agak tahan kuantum; soalan jangka panjang yang lebih besar adalah untuk tandatangan kunci awam. Komuniti Bitcoin boleh menaik taraf kriptografi melalui cadangan (BIP) jika diperlukan.

Adakah SHA-256 digunakan di luar Bitcoin?โ–ผ

Yes โ€” it secures HTTPS websites, software updates, password storage and more. Bitcoin simply put it at the center of a money system.

Keep learning