Exploring Key Retrieval with Kangaroo Algorithm

24 replies 107 views
0xKingFull Member
Posts: 34 · Reputation: 711
#1Jan 6, 2024, 07:50 AM
I was curious about how long it takes a regular PC without a GPU to fetch a key in the range of 2^74 to 2^75. So I coded my version of the kangaroo algorithm and ran some tests.
3 Reply Quote Share
wagm1Newbie
Posts: 6 · Reputation: 28
#2Jan 6, 2024, 10:09 AM
Hey, awesome! What were the results?
3 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#3Jan 6, 2024, 02:30 PM
On my laptop with an Intel i7-12700H, it takes about 3 seconds per key. I found that searching multiple keys at once speeds things up a bit.
1 Reply Quote Share
wagm1Newbie
Posts: 6 · Reputation: 28
#4Jan 6, 2024, 04:55 PM
What’s the size of your database?
2 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#5Jan 6, 2024, 08:03 PM
It’s 6GB, but it can handle higher ranges like 2^77 2^78 or even 2^80 2^81 with the same setup.
1 Reply Quote Share
wagm1Newbie
Posts: 6 · Reputation: 28
#6Jan 6, 2024, 09:02 PM
Nice! Isthe second file still available?
4 Reply Quote Share
the_nonceSenior Member
Posts: 4 · Reputation: 1428
#7Jan 7, 2024, 03:56 AM
I think it should be working now.
5 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#8Jan 7, 2024, 05:19 AM
Cool, could you share the command you used?
3 Reply Quote Share
the_nonceSenior Member
Posts: 4 · Reputation: 1428
#9Jan 7, 2024, 07:39 AM
Sure, it's./kangaroo_wild extend <hash> <min_range> <max_range>.
3 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#10Jan 7, 2024, 08:41 AM
I removed some options because they slowed the program down. Now the retrieval time is about 25% faster with the updated version.
0 Reply Quote Share
l0n3seedFull Member
Posts: 5 · Reputation: 273
#11Jan 7, 2024, 09:07 AM
What’s the time for your new setup?
0 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#12Jan 7, 2024, 02:35 PM
With this new database, I get 2.2 seconds for each key in sequential search. In parallel, it’s about 1.1 seconds. Got some slower times for higher ranges though.
0 Reply Quote Share
l0n3seedFull Member
Posts: 5 · Reputation: 273
#13Jan 7, 2024, 07:05 PM
Sounds great! What about the 135th puzzle?
0 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#14Jan 8, 2024, 01:10 AM
This program is really meant for 2^74-2^75 and similar ranges. CPUs aren’t really cut out for the 135th puzzle; GPUs crush it.
2 Reply Quote Share
l0n3seedFull Member
Posts: 5 · Reputation: 273
#15Jan 8, 2024, 02:39 AM
So you’re saying I shouldn’t bother with CPU for that?
5 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#16Jan 8, 2024, 05:36 AM
Yeah, unless you’ve got a super powerful setup, it's gonna take ages. Like, years for higher ranges.
2 Reply Quote Share
l0n3seedFull Member
Posts: 5 · Reputation: 273
#17Jan 8, 2024, 08:47 AM
I saw a 404 error on GitHub. What happened?
1 Reply Quote Share
0xKingFull Member
Posts: 34 · Reputation: 711
#18Jan 8, 2024, 12:16 PM
There’s a glitch with my account. I’ve re-uploaded everything somewhere else.
0 Reply Quote Share
l0n3seedFull Member
Posts: 5 · Reputation: 273
#19Jan 8, 2024, 01:25 PM
Really? Can you link it?
3 Reply Quote Share
falcon2019Full Member
Posts: 90 · Reputation: 425
#20Jan 9, 2024, 11:59 AM
Just give me a sec, I’ll drop the new link.
0 Reply Quote Share

Related topics