نظرانداز کرکے مرکزی مواد پر جائیں

Bits & Bytes 101: An Introduction to Cryptography

A Beginner’s Guide to Cryptography

In order to understand cryptocurrencies at the protocol level, it’s imperative to understand the mathematical relationships underlying all of cryptography. One can start this journey by going all the way back to the very beginning: the birth of the bit & the evolution towards the byte.

Basic To The Basics

Half a century ago the father of the Information Age, Claude Shannon, published the now industry-revered A Mathematical Theory of Communication dissertation. That’s the name of the declassified version published publicly by the then mid-30s mathematician in 1949. The previously classified version, however, was a war-effort published by the prestigious Bell Labs named “A Mathematical Theory of Cryptography.” Many of the core principles that were published in the popular theory of communication stemmed from the secretive theory of cryptography. In fact, Shannon famously said the following regarding the intrinsic & overlapping properties of information communication theory & cryptography:
They were so close together you couldn’t separate them.
While the majority of this article will focus on what came after his “Mathematical Theory of Communication” thesis, in order to understand a certain standard, it’s imperative we go a decade back in Shannon’s career — to when he was a 28-year old graduate student at MIT. Pursuing a masters in electrical engineering, his main task was designing new electrical circuits for an early version of the computer. A mathematician at heart, recalled the abstract boolean math he learned in his undergraduate studies at the University of Michigan. Boolean math, as you probably guessed, is a branch of math that deals with true & false statements (or 0s and 1s). Boolean math, while fascinating, had few widespread applications in the mid-30s; on the other hand, electric circuit design, a modern scientific breakthrough, desperately needed a disciplined framework for further understanding.
In 1938, Shannon published his master thesis: A Symbolic Analysis of Relay & Switching Circuits. This genius thesis proved that using Boolean algebra, one could conceptually automate the arrangement of the relays in-then manual telephone exchanges. By extension, this meant that utilizing the binary properties of electric switches as logic functions, one could use boolean algebra to represent & solve any circuit designs.
This basic framework of circuit building currently underlies all modern digital computer hardware.
A decade after his initial master thesis, while crafting his piece de resistance communication & cryptography theory deep in the Bell Lab, he finally decided to name what he believed was the basic unit of all information: a binary digit, or, a bit.

From Bits To Bytes

And so sometime during the years that Shannons brilliance spanned across scientific information communication & war-time cryptography (1944–1949), the bit became the standard unit of information for all computing.Computers strictly understand 0s & 1s…so the question follows, how do we go from binary code to, say, the very same alphanumeric characters you’re reading on this screen?

Bit Notation

A single bit is only ever a zero or a one — it has only two possible states[0,1]For two bits we get a total of fourpossibilities: [00, 01, 10, 11].
Following this pattern, it becomes fairly obvious that for every n bits we have 2^n possible states.
Eventually, the need for more symbols & letters, in order to make working with computers more developer-friendly, came to the forefront of computer scientists gaze: how does one build a number system, let alone an entire alphabet, from only 0s & 1s?

Hexadecimal

If you’ve ever had to customize a color online you’ve probably come across a hexadecimal string at one point or another — they usually look something like the following: #012f5b
Designers are very familiar with this numbering system because it’s the standard way to notate colors digitally. The core rule of the hexadecimal numbering system is that every character is represented by strictly one of the followingsixteen values: 0–9 & A — F. The first ten integers (counting zero) plus the first six letters of the English alphabet make up the entirety of the hexadecimal numbering system. Again, a total of sixteen (16) total possible states; another way of writing 16 is 2⁴. How could we represent these possible states?
With a total of four bits: 4 bits = 2⁴ possible states

ASCII

Single digit integers & the first six letters of the English alphabet are certainly a step towards a more-friendly computer language — but is it enough? How would we, for example, denote a space? differentiate between lowercase & uppercase? Or use punctuation like an exclamation point or a question mark? No, sixteen characters wouldn’t do.  
The original version of today’s standard, ASCII, proposed a seven-bit system; however, shortly afterward, it became standard to use an extension (or derivative) version of the ASCII that called for an eight-bit standard. This standard meant that any human-readable character output by a computer could be represented by eight bits, which would translate to 2⁸ = 256 possible states! This eight-bit to alphanumeric character standard is best summarized by the table below:
Each of the 256 characters can be represented by a combination of eight bits

Bytes & Beyond

We’ve now covered the birth & pragmatism of computing with, as well as defining, bits. From there we explained how four bits (2⁴) give us our hexadecimal system & how eight bits (2⁸) give us our still-in-use extended ASCII language. We’re now going to introduce a final principle that’ll hopefully make it clear why understanding the fundamentals of bits is crucial to a thorough understanding of cryptography & by extension cryptocurrencies.
Eight bits (2⁸) is actually a super important number in not just cryptography & cryptocurrencies but in all computing. In fact, eight bits are so standard that they were given a new name to symbolize an eight-bit string: a byte. byte is a string of eight bits: 8 bits = 1 byte.
The fact that bytes can represent a single character is a key reason why factors of eight are extremely common numbers in cryptography, such as 128, & 256 (from the famous Bitcoin consensus hashing algorithm SHA256). Intuitively understanding how to go from bits, to hexadecimal values to alphanumeric characters to bytes is going to be a core part of needed knowledge moving forward to really understanding the driving forces behind cryptocurrencies.

تبصرے

اس بلاگ سے مقبول پوسٹس

🛢️پٹرول پر 100 روپے سبسڈی 2026: مکمل رہنمائی اور رجسٹریشن کا طریقہ

🛢️ پپٹرول پر 100 روپے سبسڈی 2026: مکمل رہنمائی خطوط اور رجسٹریشن کا طریقہ پاکستان حکومت کی پٹرول سبسڈی 2026 کے بارے میں مکمل معلومات۔ اہلیت، رجسٹریشن کا طریقہ، فوائد و نقصانات، اور اکثر پوچھے گئے سوالات۔ تحریر از محمد طارق لیبلز: #پٹرول_سبسڈی #حکومت_پاکستان #موٹر_سائیکل #وزیراعظم_ریلیف #فیول_سبسڈی 📑 فہرست مضامین (TOC) 1. فوری حقائق (Quick Facts) 2. تعارف 3. اہلیت کے معیار 4. رجسٹریشن کا طریقہ کار 5. فوائد و نقصانات 6. اکثر پوچھے گئے سوالات (FAQ) 7. حتمی ہدایات 📊 فوری حقائق (Quick Facts Box) عنوان تفصیل 💰 سبسڈی کی رقم 100 روپے فی لیٹر 🛵 مستحقین صرف موٹر سائیکل سوار 📅 دورانیہ 3 ماہ (مزید توسیع ممکن) ⛽ زیادہ سے زیادہ 20-30 لیٹر ماہانہ 💵 زیادہ سے زیادہ بچت 3000 روپے ماہانہ 📞 ہیلپ لائن 0800-03000 ✉️ SMS نمبر 9771 🎯 تعارف وزیراعظم شہباز شریف کی زیر صدارت حالیہ اجلاس میں فیصلہ کیا گیا کہ پٹرول کی قیمت 378 روپے فی لیٹر کر دی گئی ہے۔ تاہم یہ کمی صرف ایک ماہ کے لیے ہے۔ اس لیے مستحق افراد کے لیے 100 روپے فی لیٹر کی سبسڈی کا اعلان کیا گیا ہے۔ یہ سبسڈی صرف ان لوگوں کے لیے ہے جو اپنی روزی ر...

Ethereum Price Weekly Analysis – Can ETH/USD Overcome This?

March 21, 2026 · 5 min read · Latest Analysis Ethereum is trading in a critical zone as March 2026 comes to a close. After weeks of consolidation between $2,800 and $3,500, ETH/USD is now testing key resistance levels. Investors are watching whether the second-largest cryptocurrency will break out toward $4,000 or retreat to major support. 🔑 Key Takeaways – March 2026 · ✅ ETH price is holding above the psychological $3,000 level, with positive momentum on the daily chart. · 📈 A major descending trend line from February's highs is being tested near $3,480–$3,550 on the 4-hour chart. · 🎯 A daily close above $3,600 would pave the way toward $4,000 and $4,250 in the coming weeks. · ⚠️ Failure to break resistance could trigger a retest of the $3,000–$2,880 demand zone. 📊 Ethereum Price Action – Key Levels Ethereum has shown resilience in 2026, driven by the network's Dencun upgrade and growing institutional interest. After a low of $2,820 earlier this month, price has gradually ...

پی ایس ایل 11 کا مکمل شیڈول جاری: آٹھ ٹیمیں، 44 میچز، چھ شہر - 2026کا میلہ

🏏 پی ایس ایل 11: تاریخ کا سب سے بڑا ایونٹ آٹھ ٹیمیں | 44 میچز | چھ شہر | 39 دن پاکستان کرکٹ بورڈ (PCB) نے 9 مارچ 2026 کو PSL 11 کا مکمل شیڈول جاری کر دیا۔ یہ ٹورنامنٹ پاکستان کی کرکٹ تاریخ کا سب سے بڑا ایونٹ ہوگا جو 26 مارچ سے 3 مئی 2026 تک جاری رہے گا۔ اس سال پہلی بار 8 ٹیمیں حصہ لیں گی اور 44 میچز ملک بھر کے 6 شہروں میں کھیلے جائیں گے۔ 🔥 اس سال کی خاص باتیں: · ✅ دو نئی ٹیموں کا اضافہ: حیدرآباد کنگس مین اور راولپنڈی پنڈیز · ✅ پہلی بار فیصل آباد اور پشاور میں پی ایس ایل میچز · ✅ ڈبل ہیڈرز (ایک دن میں دو میچ) کا آغاز · ✅ نئی حریفیاں: حیدرآباد vs کراچی، راولپنڈی vs اسلام آباد 📊 ٹورنامنٹ کے اعدادوشمار شماریات تفصیل 🗓️ کل دن 39 دن 🏏 کل میچز 44 میچز 👥 شریک ٹیمیں 8 ٹیمیں 🏟️ میزبان شہر 6 شہر 🕒 میچ کا وقت 2:30 PM / 7:00-8:00 PM 🏆 شریک ٹیمیں اور ان کی قیمت ٹیم علامت نیلامی قیمت (کروڑ میں) اسلام آباد یونائیٹڈ 🇮🇸 200 کراچی کنگز 👑 210 لاہور قلندرز 🦁 195 ملتان سلطانز 🌊 180 پشاور زلمی ⚡ 190 کوئٹہ گلیڈی ایٹرز 🏔️ 185 حیدرآباد کنگس مین (نئی) 👑 175 راولپنڈی پنڈیز (نئی) 🏞️ 245 (سب سے مہن...