How secure is 256 bit security?

3Blue1Brown · Beginner ·🔍 RAG & Vector Search ·8y ago
Skills: RAG Basics80%

Key Takeaways

The video explains the security of 256-bit hashes by demonstrating the impracticality of guessing and checking, using examples of computational power and large numbers, specifically referencing the SHA-256 hash function and Bitcoin mining.

Full Transcript

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 and this would require on average 2 to the 256 guesses now this is a number so far removed from anything that we ever deal with that it can be hard to appreciate its size but let's give it a try 2 to 256 is the same as 2 to 32 multiplied by itself 8 times now what's nice about that split is that 2 32 is 4 billion which is at least a number we can think about right it's the kind of thing you might see in headline so all we need to do is appreciate what multiplying 4 billion times itself eight successive times really feels like as many of you know the GPU on your computer can let you run a whole bunch of computations in parallel incredibly quickly so 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 and let's say that 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 singled digigit 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 a thousand copies of this souped up Google let's call that one kilog 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 killer 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 so this would be akin to a full 1% of every star in the galaxy having a copy of Earth where half the people on that Earth have their own personal killer 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 gu every second now 4 billion seconds that's about 126.80 7 billion years which is about 37 times the age of the universe so even if you were to have your GPU packed kilog Google perp person multiplanetary Giga Galactic computer guessing numbers for 37 times the age of the universe it would still only have a 1 in4 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 1/3 of what I just described as a kilog gooogle this is not because there are actually billions of GPU packed machines out there but because miners actually use something that's about a thousand times better than a GPU application specific integrated circuits these are pieces of hard Ware specifically designed for Bitcoin mining for running a bunch of shot 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 two to 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 upload the ones that 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 [Music] [Music]

Original Description

How hard is it to find a 256-bit hash just by guessing and checking? Help fund future projects: https://www.patreon.com/3blue1brown An equally valuable form of support is to simply share some of the videos. Home page: https://www.3blue1brown.com/ Several people have commented about how 2^256 would be the maximum number of attempts, not the average. This depends on the thing being attempted. If it's guessing a private key, you are correct, but for something like guessing which input to a hash function gives the desired output (as in bitcoin mining, for example), which is the kind of thing I had in mind here, 2^256 would indeed be the average number of attempts needed, at least for a true cryptographic hash function. Think of rolling a die until you get a 6, how many rolls do you need to make, on average? Music by Vince Rubinetti: https://vincerubinetti.bandcamp.com/album/the-music-of-3blue1brown Thanks to these viewers for their contributions to translations Dutch: @bvdeijzen Hebrew: Omer Tuchfeld Italian: retr00h ------------------ 3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe, and click the bell to receive notifications (if you're into that). If you are new to this channel and want to see more, a good place to start is this playlist: http://3b1b.co/recommended Various social media stuffs: Website: https://www.3blue1brown.com Twitter: https://twitter.com/3Blue1Brown Patreon: https://patreon.com/3blue1brown Facebook: https://www.facebook.com/3blue1brown Reddit: https://www.reddit.com/r/3Blue1Brown
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 3Blue1Brown · 3Blue1Brown · 48 of 60

1 e to the pi i, a nontraditional take (old version)
e to the pi i, a nontraditional take (old version)
3Blue1Brown
2 Euler's Formula Poem
Euler's Formula Poem
3Blue1Brown
3 Euler's Formula and Graph Duality
Euler's Formula and Graph Duality
3Blue1Brown
4 What does it feel like to invent math?
What does it feel like to invent math?
3Blue1Brown
5 How to count to 1000 on two hands
How to count to 1000 on two hands
3Blue1Brown
6 Music And Measure Theory
Music And Measure Theory
3Blue1Brown
7 Fractal charm: Space filling curves
Fractal charm: Space filling curves
3Blue1Brown
8 The Brachistochrone, with Steven Strogatz
The Brachistochrone, with Steven Strogatz
3Blue1Brown
9 Snell's law proof using springs
Snell's law proof using springs
3Blue1Brown
10 Triangle of Power
Triangle of Power
3Blue1Brown
11 Essence of linear algebra preview
Essence of linear algebra preview
3Blue1Brown
12 Vectors | Chapter 1, Essence of linear algebra
Vectors | Chapter 1, Essence of linear algebra
3Blue1Brown
13 Linear combinations, span, and basis vectors | Chapter 2, Essence of linear algebra
Linear combinations, span, and basis vectors | Chapter 2, Essence of linear algebra
3Blue1Brown
14 Linear transformations and matrices | Chapter 3, Essence of linear algebra
Linear transformations and matrices | Chapter 3, Essence of linear algebra
3Blue1Brown
15 Matrix multiplication as composition | Chapter 4, Essence of linear algebra
Matrix multiplication as composition | Chapter 4, Essence of linear algebra
3Blue1Brown
16 Three-dimensional linear transformations | Chapter 5, Essence of linear algebra
Three-dimensional linear transformations | Chapter 5, Essence of linear algebra
3Blue1Brown
17 The determinant | Chapter 6, Essence of linear algebra
The determinant | Chapter 6, Essence of linear algebra
3Blue1Brown
18 Inverse matrices, column space and null space | Chapter 7, Essence of linear algebra
Inverse matrices, column space and null space | Chapter 7, Essence of linear algebra
3Blue1Brown
19 Nonsquare matrices as transformations between dimensions | Chapter 8, Essence of linear algebra
Nonsquare matrices as transformations between dimensions | Chapter 8, Essence of linear algebra
3Blue1Brown
20 Dot products and duality | Chapter 9, Essence of linear algebra
Dot products and duality | Chapter 9, Essence of linear algebra
3Blue1Brown
21 Cross products in the light of linear transformations | Chapter 11, Essence of linear algebra
Cross products in the light of linear transformations | Chapter 11, Essence of linear algebra
3Blue1Brown
22 Cross products | Chapter 10, Essence of linear algebra
Cross products | Chapter 10, Essence of linear algebra
3Blue1Brown
23 Change of basis | Chapter 13, Essence of linear algebra
Change of basis | Chapter 13, Essence of linear algebra
3Blue1Brown
24 Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra
3Blue1Brown
25 Abstract vector spaces | Chapter 16, Essence of linear algebra
Abstract vector spaces | Chapter 16, Essence of linear algebra
3Blue1Brown
26 Who cares about topology?   (Old version)
Who cares about topology? (Old version)
3Blue1Brown
27 3blue1brown channel trailer
3blue1brown channel trailer
3Blue1Brown
28 Binary, Hanoi and Sierpinski, part 1
Binary, Hanoi and Sierpinski, part 1
3Blue1Brown
29 Binary, Hanoi, and Sierpinski, part 2
Binary, Hanoi, and Sierpinski, part 2
3Blue1Brown
30 But what is the Riemann zeta function? Visualizing analytic continuation
But what is the Riemann zeta function? Visualizing analytic continuation
3Blue1Brown
31 Tattoos on Math
Tattoos on Math
3Blue1Brown
32 Fractals are typically not self-similar
Fractals are typically not self-similar
3Blue1Brown
33 Euler's formula with introductory group theory
Euler's formula with introductory group theory
3Blue1Brown
34 The essence of calculus
The essence of calculus
3Blue1Brown
35 The paradox of the derivative | Chapter 2, Essence of calculus
The paradox of the derivative | Chapter 2, Essence of calculus
3Blue1Brown
36 Derivative formulas through geometry | Chapter 3, Essence of calculus
Derivative formulas through geometry | Chapter 3, Essence of calculus
3Blue1Brown
37 Visualizing the chain rule and product rule | Chapter 4, Essence of calculus
Visualizing the chain rule and product rule | Chapter 4, Essence of calculus
3Blue1Brown
38 What's so special about Euler's number e? | Chapter 5, Essence of calculus
What's so special about Euler's number e? | Chapter 5, Essence of calculus
3Blue1Brown
39 Implicit differentiation, what's going on here? | Chapter 6, Essence of calculus
Implicit differentiation, what's going on here? | Chapter 6, Essence of calculus
3Blue1Brown
40 Limits, L'Hôpital's rule, and epsilon delta definitions | Chapter 7, Essence of calculus
Limits, L'Hôpital's rule, and epsilon delta definitions | Chapter 7, Essence of calculus
3Blue1Brown
41 Integration and the fundamental theorem of calculus | Chapter 8, Essence of calculus
Integration and the fundamental theorem of calculus | Chapter 8, Essence of calculus
3Blue1Brown
42 What does area have to do with slope? | Chapter 9, Essence of calculus
What does area have to do with slope? | Chapter 9, Essence of calculus
3Blue1Brown
43 Higher order derivatives | Chapter 10, Essence of calculus
Higher order derivatives | Chapter 10, Essence of calculus
3Blue1Brown
44 Taylor series | Chapter 11, Essence of calculus
Taylor series | Chapter 11, Essence of calculus
3Blue1Brown
45 Pi hiding in prime regularities
Pi hiding in prime regularities
3Blue1Brown
46 All possible pythagorean triples, visualized
All possible pythagorean triples, visualized
3Blue1Brown
47 But how does bitcoin actually work?
But how does bitcoin actually work?
3Blue1Brown
How secure is 256 bit security?
How secure is 256 bit security?
3Blue1Brown
49 Hilbert's Curve: Is infinite math useful?
Hilbert's Curve: Is infinite math useful?
3Blue1Brown
50 Thinking outside the 10-dimensional box
Thinking outside the 10-dimensional box
3Blue1Brown
51 Some light quantum mechanics (with minutephysics)
Some light quantum mechanics (with minutephysics)
3Blue1Brown
52 But what is a neural network? | Deep learning chapter 1
But what is a neural network? | Deep learning chapter 1
3Blue1Brown
53 Gradient descent, how neural networks learn | Deep Learning Chapter 2
Gradient descent, how neural networks learn | Deep Learning Chapter 2
3Blue1Brown
54 Backpropagation, intuitively | Deep Learning Chapter 3
Backpropagation, intuitively | Deep Learning Chapter 3
3Blue1Brown
55 Backpropagation calculus | Deep Learning Chapter 4
Backpropagation calculus | Deep Learning Chapter 4
3Blue1Brown
56 The hardest problem on the hardest test
The hardest problem on the hardest test
3Blue1Brown
57 Q&A #2 + Net Neutrality Nuance
Q&A #2 + Net Neutrality Nuance
3Blue1Brown
58 Why this puzzle is impossible
Why this puzzle is impossible
3Blue1Brown
59 But what is the Fourier Transform?  A visual introduction.
But what is the Fourier Transform? A visual introduction.
3Blue1Brown
60 The more general uncertainty principle, regarding Fourier transforms
The more general uncertainty principle, regarding Fourier transforms
3Blue1Brown

The video explains the security of 256-bit hashes by demonstrating the impracticality of guessing and checking, using examples of computational power and large numbers. It highlights the importance of security in cryptographic systems and provides a basic understanding of RAG search.

Key Takeaways
  1. Understand the concept of 256-bit security
  2. Learn about the SHA-256 hash function
  3. Appreciate the computational power required to guess and check hashes
  4. Recognize the importance of security in cryptographic systems
💡 The security of 256-bit hashes is extremely high due to the impracticality of guessing and checking, making it virtually unbreakable with current computational power.

Related AI Lessons

What Is RAG? The AI Technology That Makes ChatGPT Smarter Without Retraining
Learn about RAG, the AI technology that enhances ChatGPT's capabilities without requiring retraining, and why it matters for advancing language models
Medium · RAG
Understanding the Limits of Linear RAG — and Why Agentic Workflows Are Catching On
Learn the limitations of linear RAG pipelines and how agentic workflows are becoming a popular alternative for more efficient and effective AI workflows
Medium · AI
Understanding the Limits of Linear RAG — and Why Agentic Workflows Are Catching On
Learn why linear RAG pipelines have limitations and how Agentic workflows are becoming a preferred alternative in the industry
Medium · Machine Learning
Understanding the Limits of Linear RAG — and Why Agentic Workflows Are Catching On
Learn why linear RAG pipelines have limitations and how Agentic workflows are becoming a preferred alternative in the industry
Medium · Data Science
Up next
RRF vs DBSF with Qdrant: Hybrid Retrieval Fusion for RAG in Python
Professor Py: AI Engineering
Watch →