yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

How secure is 256 bit security?


3m read
·Nov 8, 2024

In the main video on cryptocurrencies, I made two references to situations where in order to break a given piece of security, you would have to guess a specific string of 256 bits. One of these was in the context of digital signatures, and the other in the context of a cryptographic hash function.

For example, if you want to find a message whose SHA-256 hash is some specific string of 256 bits, you have no better method than to just guess and check random messages. This would require, on average, 2 to the 256 guesses. This is a number so far removed from anything we ever deal with that it can be hard to appreciate its size, but let's give it a try.

Two to the 256 is the same as 2 to the 32 multiplied by itself 8 times. What's nice about that split is that 2 to the 32 is 4 billion, which is at least a number we can think about. All we need to do is appreciate what multiplying 4 billion times itself 8 successive times really feels like.

As many of you know, the GPU on your computer can let you run a bunch of computations in parallel incredibly quickly. If you were to specially program a GPU to run a cryptographic hash function over and over, a really good one might be able to do a little less than a billion hashes per second.

Let's say you just take a bunch of those and cram your computer full of extra GPUs so that your computer can run 4 billion hashes per second. So the first 4 billion here is going to represent the number of hashes per second per computer. Now, picture 4 billion of these GPU-packed computers.

For comparison, even though Google does not at all make their number of servers public, estimates have it somewhere in the single-digit millions. In reality, most of those servers are going to be much less powerful than our imagined GPU-packed machine. But let's say that Google replaced all of its millions of servers with a machine like this, then 4 billion machines would mean about 1,000 copies of this souped-up Google.

Let's call that 1 kilo-Google worth of computing power. There's about 7.3 billion people on Earth. So next, imagine giving a little over half of every individual on Earth their own personal kilo-Google. Now, imagine 4 billion copies of this Earth.

For comparison, the Milky Way has somewhere between 100 and 400 billion stars. We don't really know, but the estimates tend to be in that range. This would be akin to a full 1% of every star in the galaxy having a copy of Earth where half the people on Earth have their own personal kilo-Google.

Next, try to imagine 4 billion copies of the Milky Way. And we're going to call this your giga-galactic supercomputer, running about 2 to the 160 guesses every second. Now, 4 billion seconds, that's about 126.8 years.

Four billion of those, well that's 507 billion years, which is about 37 times the age of the universe. So even if you were to have your GPU-packed kilo-Google-per-person multiplanetary giga-galactic computer guessing numbers for 37 times the age of the universe, it would still only have a 1 in 4 billion chance of finding the correct guess.

By the way, the state of Bitcoin hashing these days is that all of the miners put together guess and check at a rate of about 5 billion billion hashes per second. That corresponds to one third of what I just described as a kilo-Google. This is not because there are billions of GPU-packed machines out there, but because miners actually use something that's about 1000 times better than a GPU, application-specific integrated circuits.

These are pieces of hardware specifically designed for Bitcoin mining, for running a bunch of SHA-256 hashes, and nothing else. Turns out, there's a lot of efficiency gains to be had when you throw out the need for general computation and design your integrated circuits for one and only one task.

Also, on the topic of large powers of two that I personally find it hard to get my mind around, this channel recently surpassed 2 to the 18th subscribers. And to engage a little more with some sub-portion of those 2 to the 18 people, I'm going to do a Q&A session.

I've left a link in the description to a Reddit thread where you can post questions and upvote the ones you want to hear answers to. And probably in the next video or on Twitter or something like that I'll announce the format in which I'd like to give answers. See you then!

More Articles

View All
Shaving Foam | Ingredients With George Zaidan (Episode 3)
[Applause] What’s in here? What’s it do? And can I make it from scratch? It’s a inside ingredients. First things first, these are not shaving cream; they’re actually shaving foam. Shaving cream is more like face cream, and that deserves its own episode a…
Gordon Makes Hominy | Gordon Ramsay: Uncharted
It’s the day before the Big Cook, and I’ve got one last very important stop. On the border of the Great Smoky Mountains is the national park that is inhabited by the Cherokee Indians. I’ve heard that there is a Cherokee dish that I need to taste to believ…
Having no charisma is ruining your life
Due to the internet age and people being on their phones all the time, people have lost the ability to communicate effectively with other people. And that’s probably not a secret to you at all. You’ve probably felt the effects of this in your own life. Th…
Credit Cards 101: How to build your credit score ASAP and leverage your money
What’s up you guys? It’s Graham here. So this is probably one of the most important videos I’ve made so far, and it’s how to get a good credit score. Now I have a bit of a confession to make: I’m a bit of a nerd when it comes to credit cards. So I’m goin…
5 Things to Know About Fighting ISIS | Explorer
[Music] The Kurds are often described as the largest, the world’s largest ethnic group that does not have a country of its own. Most people put the population of Kurds at about 30 million, and they’re spread through at least four countries: Syria, Turkey,…
The WALKING WATER Mystery (in SPACE and SLOW MOTION!) - Smarter Every Day 160
Hey, it’s me Destin and welcome back to Smarter Every Day! I have a problem. There is a specific water phenomenon that I see happening all around me, but I have no idea how it works. I’ve been trying to figure it out for years. In fact, I put a video on t…