Lurker News

Comments (137) 40 threads

Show all comments

Showing thread 28 of 40

M4tze1 reply#
Great visualization. Might become my new screensaver.
colejohnson661 reply#
One could even feed the hash back into itself to get a different result each time
em3rgent0rdr1 reply#
how long would the cycle last before it starts repeating?
tromp2 replies#
On the order of 2^256 steps, if SHA-256 behaves randomly, since the largest cycle in a random permutation on N elements has expected length ~ 0.62 * N.
MayeulC1 reply#
Then wouldn't that be 0.62*2^256, closer to 2^255 ? Not that it makes a notable difference: at 1 fs per step (1000 GHz, or 1 TH/s), that would take about 4.5e65 years to happen. The universe is only about 1e10 years old...
tromp#
It would be at least that, with a smaller contribution to the expectation from smaller cycles. That's why I said "on the order of", i.e. not much smaller.
pbsd3 replies#
SHA-256 is not a permutation; the expected cycle length is ~2^128. It's how collisions are (generically) found.

Continue this thread — 3 replies