Mechanical Hashing Concepts

20 replies 229 views
0xLaserFull Member
Posts: 126 · Reputation: 641
#1Sep 10, 2018, 05:48 AM
I was thinking, how about explaining crypto to non-tech folks using mechanical hash functions? Imagine a device where you can set the Initialization Vector for SHA-256 and input any 512-bit message to see the result. That could make understanding mining way easier. If someone builds it, I’d buy it with Bitcoin.
6 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#2Sep 10, 2018, 05:53 AM
What if we had a device with an LED screen that does just one round of hashing? You could customize how the states combine, like using XOR or rotate operations. It’d be like a mini computer with buttons for inputting random strings and starting the hash. Way easier than a full mechanical setup.
1 Reply Quote Share
just_satNewbie
Posts: 7 · Reputation: 35
#3Sep 10, 2018, 05:59 AM
How about using chaotic fluids for hashing? Picture stirring a muddy fluid, like a microfluidic device, to hash data. The flow dynamics would encode info similar to SHA-256. Sounds wild but interesting.
0 Reply Quote Share
Posts: 14 · Reputation: 184
#4Sep 10, 2018, 04:00 PM
I’m not sure about a mechanical approach but if you wanna try, paper and pencil work too. I found a guide that explains how to mine using just those.
0 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#5Sep 10, 2018, 09:38 PM
I did it by hand too, no need to convert hex to binary. Just some rotations. I know it's possible mechanically. You can create tables for addition and other operations. Took me a few hours, but I got it down.
0 Reply Quote Share
max2013Newbie
Posts: 46 · Reputation: 24
#6Sep 12, 2018, 10:35 PM
SHA-256 can't be reversed just by cranking it backward.
3 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#7Sep 13, 2018, 12:14 AM
Actually, it can if you have all the context. You can compute rounds in reverse if you have all the needed data. I can show how it works in another thread.
0 Reply Quote Share
max2013Newbie
Posts: 46 · Reputation: 24
#8Sep 13, 2018, 12:53 AM
Not so sure. SHA-256 uses modular math which isn’t reversible. Plus, the operations like XOR and AND are probably irreversible too.
4 Reply Quote Share
0xNodeMember
Posts: 307 · Reputation: 80
#9Sep 13, 2018, 07:00 AM
I don’t get it, but SHA-256 is complex. A mechanical device reversing it? Not likely. Unless, like, it could store tons of data.
4 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#10Sep 13, 2018, 10:41 AM
Had another thought on that SHA-256 device. Why not build a web service instead? Design the rounds like state machines. People could play with hash functions without needing hardware.
6 Reply Quote Share
mr_apeNewbie
Posts: 170 · Reputation: 35
#11Sep 13, 2018, 02:25 PM
Modulo is reversible with context. For instance, addition modulo 2^32 is reversible like a clock. You can subtract to get back. Same with XOR and rotation.
2 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#12Sep 13, 2018, 04:06 PM
But that’s not real reversing. You don’t have both original inputs for hash digests.
3 Reply Quote Share
max2013Newbie
Posts: 46 · Reputation: 24
#13Sep 14, 2018, 04:26 PM
Exactly. Just need to start from the Initialization Vector and the w-values. Rotate mechanically like an old calculator and compute rounds to get the final hash.
3 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#14Sep 14, 2018, 08:35 PM
You’re right. If you have just one 512-bit chunk, reversing might not be necessary since the w-values hold the original message. Cranking backwards gets you the same hash values already in the algorithm.
0 Reply Quote Share
max2013Newbie
Posts: 46 · Reputation: 24
#15Sep 14, 2018, 09:46 PM
Let’s focus on making a device that handles one chunk first, then we can expand from there. Hashing a block header is a good start.
6 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#16Sep 14, 2018, 11:07 PM
A device like that could help generate private keys mechanically. It’s safer than using a computer after rolling dice.
0 Reply Quote Share
nova42Newbie
Posts: 32 · Reputation: 6
#17Sep 15, 2018, 03:58 AM
If you can add and double points, you can deal with ECDSA. No need for fancy machines; even a large device could work for generating addresses.
0 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#18Sep 17, 2018, 12:15 PM
I’m picturing something like the Turing machines from WWII. Are we talking about devices like that?
4 Reply Quote Share
max2013Newbie
Posts: 46 · Reputation: 24
#19Sep 19, 2018, 06:15 PM
It should work without any external power. If the power goes out, it should still function. Chemical hashing is interesting, but simple mechanical hashing seems easier to operate.
4 Reply Quote Share
0xLaserFull Member
Posts: 126 · Reputation: 641
#20Sep 21, 2018, 06:00 PM
Using marbles and gravity sounds cool but it has to be accurate all the time. Errors could mess up the Bitcoin address computation.
1 Reply Quote Share

Related topics