r/github • • Feb 22 '25

SECURE YOUR GITHUB ACCOUNT!!!

so my pc system got corrupted and i completely did a reformat erasing everything and completely forgot that my github recovery codes are also there (authy on my old phone old email registered didnt have access). realizing i fucked up. why i fucked up? cause even github cant help if you dont have access to those 2FA’s. like your account will be totally lost forever. (realizing your projects you worked for years is lost cant imagine). I realized i have an old laptop used to use so i checked and luckily retrieved my github code in recycle bin (mistakenly deleted) gonna cry fr. So guys secure your recovery codes find it and store it somewhere safe we never know what happen in future. Github is where all our arsenals are kept.

491 Upvotes

106 comments sorted by

View all comments

Show parent comments

4

u/carsncode Feb 22 '25

Again, you're looking at it wrong. It's not brute forcing the full character space across 52 characters, it's the tiny, tiny fraction of that space that makes up legible grammatical text.

1

u/Silent-Treat-6512 Feb 22 '25

Can you calculate how much it is… I am not taking it wrong. I am considering you are brute forcing entire 52 chars with starting and ending length at 52.

Now replace every chars to aaa….a then aaa…b, aaa…c - even then it will take you longer time than entire atoms in universe

2

u/carsncode Feb 23 '25

But aaaaaaa...a and aaaaaaa...b are not legible, grammatical text. This is my point. The vast majority of 52 character strings can be excluded.

-1

u/Silent-Treat-6512 Feb 23 '25

Then it’s not brute force. Its dictionary attack, which gets infact even more complicated and take longer as now you thinking of ALL possible words and their combinations. That’s 52N instead of 5263

1

u/carsncode Feb 23 '25

That's... Not remotely how that works. A) it's still brute force and b) how on earth did you manage to convince totally that "all 52 character bodies of legible grammatical text" is somehow larger than "all 52 character combinations", which must obviously include the first group and then some? This is just silly at this point.

-1

u/Silent-Treat-6512 Feb 23 '25

A is legitimate grammar text. “An the is this of” just some examples

If it’s brute force then you are killing yourself - now to guess all 2 character legitimate words, also how are you sure those words are in dictionary.. for instance many “native” languages have their own words typed into English.

You can try as hard as you can and unless you give me a script of your magically reducing the chances - you just not making sense to me.

Let’s hack this - I am thinking of a legitimate 10 chars password of all “English words” let’s see how long it will take you to break.

1

u/carsncode Feb 23 '25

It's really really simple.

There's the space of all 52-character strings, right? Some of those are legible, grammatical text. Most aren't. Most are gibberish like aaa...b and so on, right? But all 52-character texts must be included in that set, right? It's a perfect sunset of all 52-character strings. Not sure how to make this any more clear. Best of luck anyway!

0

u/Silent-Treat-6512 Feb 23 '25

Can you estimate the time it will take to just make that set. In realistic sense and given the potential for permutations I am very seriously curious to know what is your algo. Happy to work collaboratively via GitHub if you want to test the theory

2

u/carsncode Feb 23 '25

It is, as you've already pointed out, a brute force dictionary attack. 52 characters including spaces and punctuation is like... 10 words, give or take. It's many, many, many orders of magnitude smaller than 5263, even without bothering to make it grammatical, which would make it orders of magnitude smaller again.

0

u/Silent-Treat-6512 Feb 23 '25

;) it’s around 18-20 words and many spaces, some punctuation- let’s make it even simpler and assume all words are from BIP39 list which is not exhaustive English words and a very small subset, let’s assume now it’s fixed 12 words from BIP39 list which still will take roughly 170 trillion years to crack.. given the entire word list - why do you think no one cracked the Bitcoin private key yet. I am loving it conversation and unless you put your money where your mouth is and come up with an algorithm which can guess say this string “lizard vanish wisdom sniff clog mercy helmet wild genius casual vivid absurd” as sample password which is all valid words from BIP39 list

I bet $100 to ANYONE who can generate THIS password by going through BIP39 list and picking words randomly to come to this matching string.

Heck I might hire you as Principal Eng :)

→ More replies (0)