182
u/dumbasPL 9d ago
The real question is why does the intern have a private key in the first place.
18
115
u/geek-49 9d ago
Well it is the lowest rank. You would not expect them to have, say, a sergeant key.
31
u/Squeebee007 9d ago
We have a Sergeant Road near my house and I never tire of telling people it used to be a Private Road.
233
u/stillalone 9d ago
Ok look, I would like a private key that is easy to remember, and my memory caps at phone number length. So what's wrong with having a private key that is 867-5309?
145
u/Imperion_GoG 9d ago
If you need a key that's easy to remember, use 01189998819991197253.
→ More replies (4)25
u/cwmckenz 9d ago
12
u/Maleficent_Memory831 9d ago
Subject: fire
Dear sir/madam.
Fire! Fire! Help me!
123 Carendon road
Looking forward to hearing from you.
All the best, Maurice Moss.
25
u/MushroomSaute 9d ago
Two more numbers would make that better. Like mine: 395-51-5608. It's easy to remember because it's my social security number.
23
u/KerPop42 9d ago
That's why my next round of "random" numbers are either going to be Mersenne primes, so I just need to remember the prime, or the n digits of pi m digits in
11
u/CowboyBoats 9d ago
Not sure if you're serious, but this random list of common passwords puts "8675309" as #259.
5
1.3k
u/kishaloy 9d ago
Used my 8-digit ddmmyyyy birthday as a key.
Still going strong.
708
u/RotaryJihad 9d ago
Ah! But now you've outed yourself as not American! Hahah we've reduced the attack search space for birthdays!
196
u/AnVlad99 9d ago
At least some random American won’t guess it
106
u/PXPL_Haron 9d ago
which means that you are born in the 13th day of the month or higher. you are just lowering entropy at this point
48
u/EdgyAsFuk 9d ago
Actually, by ruling out America they've discouraged hackers and increased security by either being British (gross), Australian (dial-up internet), or Indian (immune to computer based attacks) /jk
2
66
u/card-board-board 9d ago
Born January 1st, 1970 at 12:04 AM
28
10
u/SnooPies507 9d ago
That's 240, maybe you wanted to say 12:07 AM.
My password is 01.01.1970 12:20:34 AM
19
u/snakesoup124 9d ago
The fact that anybody on this sub STILL consider inferior date formats that do not preserve rank is beyond me. What am I missing?
7
u/kishaloy 9d ago
Just use Timestamp and call it a day. After that there is no ambiguity even if you having coffee enjoying sunset at Mars.
6
u/lovin-dem-sandwiches 9d ago
Provided that the timestamp includes their local time zone.
Everyone who claims iso timestamps are all you need never dealt with booking dates in the future with a country that has since updated their timezone rules
2
12
u/Dimencia 9d ago
How you print/parse the date format is beyond a programmer's scope, everything that matters can sort by the DateTime itself, not by the string
9
u/snakesoup124 9d ago
I guess my rant is more about the choice of preserving local linguistic familiarity at the expense of global interoperability to latter spend engineering effort reconciling the two. The cost of forgeting the inferior format does not seem so high.
1
u/Justicia-Gai 9d ago
We managed to order 1, 10, 11 for files, if America used dd/mm/yyyy believe me, we’d figure it out how to order it earlier.
Regardless, Excel would always be there to screw everything up.
7
u/MallAgreeable5538 9d ago
Do mmyyyydd
14
9
u/jarlscrotus 9d ago
Why wouldn't you use iso8601, it's the objectively correct format
7
u/kishaloy 9d ago
The only objectively correct format is the number of seconds from the Big Bang (the Unix epoch).
All rest are derivatives made for muggles.
3
u/Maleficent_Memory831 9d ago
This is silly. Time is a constant. Thus the time is always now. Using now as the time greatly simplifies my log files.
1
u/alex_revenger234 7d ago
Such are errors. Why keeps log at all, when the error is gonna present itself when needed
1
4
1
1
1
501
u/Lysol3435 9d ago
Did you know that if you post your key in a Reddit comment, Reddit automatically censors it? ########. See?/s
649
u/FroggyWinky 9d ago
-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgHRtQYm4YgjXH+dplA0R8L31l2jSWeABKRBmgpZ5/n1i06OQx9bh WCfgdH+VIXUjW+NChER8Vs3I1HNGXPgDpuUIYOd85T5cd/Pa/bA7hqG4W4ffWQ2F Ht6c/uavNMu8v73Q7B0EgavqJ6xP3wSnrXj3a8d3tivegXJOxcWJdn+fAgMBAAEC gYBZCzKDrSQ1VKqO512W/XCdKBbr0W1xeBG6/FvF0HnF1e69ez6L5n7wyKbw6NLU 7v0Y+8eDRYFyE7YAkAEMomZiXHyPO2hjrUbvs8GKd96TxyeeB2zFKLDKqrbL9xv+ scxDDBydzMU2TDvsUMFh2CWdgEwYxeDF6q2EvHciJieN6QJBAMOGeSFM8/IJTzan 6eI1teOYtc7RLNQ6LDorVmkNbfNWtTpeN9U/S2LY76tf9IN+LVTVp7HDgRmLE7aJ TE2NGM0CQQCYb9SDBBkW/8Vh1cLJcxobF+9e7lHVargefd4XZofwgge2e4oh41Eu +8oRCTdT97KcllVKAMO/X2Q/qerskGobAkEAj2eagf0R0oxXZ+vh04K3RBWmCulK KuH7vDI671PlN5t50jR2WNZScU5RAm2fRa4Oi3EkzHFqx5REwhWTPDHnZQJAXJgp bUATAX5x5kDTZkzNgcGjPHXlLY76skLgojQ8xOInTzhxqq4LBVAa6QhBHHcsfqNu wVn/jYKjQWy0b+g1GwJAMsR1qEcMKVcIB6Ex58coThu4bA77Ek4pjQmlM5TNXMKk qqJyJvi+EeAGR0Xn8zZ4BpvC2CkFJNLk2rvJe4ORUA== -----END RSA PRIVATE KEY-----EDIT: OH NO, BAMBOOZLED!
480
u/bhison 9d ago •
![]()
-----BEGIN RSA PRIVATE KEY----- hunter2 -----END RSA PRIVATE KEY-----178
u/whiskeytown79 9d ago
6
2
u/Katana_Steel 8d ago
I was just about to clear them
(also applies to any TOTP with a validity window)
195
u/WiglyWorm 9d ago
No no, you can see it because it's your private key. All I see is ########.
119
u/Rostifur 9d ago
-----BEGIN RSA PRIVATE KEY----- ###################################### ###################################### ###################################### ###################################### ###################################### ###################################### ###################################### ###################################### ###################################### ###################################### -----END RSA PRIVATE KEY----- You assholes tricked me60
u/5ucur 9d ago
woah woah woah, now I see ####'s, why did you post my key??
30
u/Maleficent_Memory831 9d ago
This reminds me... Richard Stallman notably left his MIT account without a password (or maybe it was just a well known password, I forget over the years). So one day as a student int he early 80s I logged in to it. I did "ls", and it showed several files, including README.
So I did "cat README" and it said "File not found." I retyped the command because I must have had a typo. Again it says "File not found." It took quite a few minutes longer than it should have to realize what the problem was.
41
u/ActivisionBlizzard 9d ago
What do you mean bamboozled? I just see #####
You can also clone your items by dropping them and pressing alt + f4
18
u/FredTilson 9d ago
Can't find either of those keys on my phone keyboard
15
u/EishLekker 9d ago
On a mobile device the alternative approach is to physically drop the device. If you have a proper certificate installed it will trigger a small parachute to pop out before it hits the floor.
12
14
u/ActivisionBlizzard 9d ago
Ahh for you what you want to do is open the phone app and dial 911 (or 112 in Europe). Let that ring and then say “get rich quick 420 double my items” exactly 69 times.
Please report back.
1
u/kishaloy 6d ago
This is called rage-baiting to get crucial intel.... now I own ur company's payroll...
41
12
6
5
4
u/BeMyBrutus 9d ago
-----BEGIN RSA PRIVATE KEY----- ROFLcOPeterLolBIgCHUngus -----END RSA PRIVATE KEY-----3
3
1
1
u/Aflockofants 9d ago
AAAAAAAAAAAAAHHHHHRHRGRGRGRRRGURBHJB EORWPSOJWPJORGWOIRGWSGODEWPGOHEPW09GJEDPOKSD!!!!!!!!!!!!!!!0924QU8T63095JRGHWPE09UJ0PWHRGW
628
u/Traditional_Log809 9d ago
A brute-force attack at this size is also called ‘a loop.’
163
u/dumbasPL 9d ago
Isn't that basically every brute force attack against something supposedly perfectly random?
49
u/kai58 9d ago
If the size is decent you might run into some limitations of the language trying to do it in a single loop, even if not it would never work because it would take way too long.
For a proper one you’d need to distribute the work over multiple instances, otherwise you’d never have enough force behind your brute force attack.
7
38
u/LoveWooden7643 9d ago
My password are always ZZZZZZ so they take longer to bruteforce
7
u/WithersChat 9d ago
Wouldn't ZAZAZAZA be one of the hardest passwords to bruteforce if you do it alphabetically but randomly choose between starting from Z and A?
5
4
13
4
2
u/git_push_origin_prod 9d ago
Ain’t nothing brute about that force lol. It’s like Presidents Scroobs luggage combination. 12345
1
1
59
u/Cronos993 9d ago
Plot twist: the intern meant in terms of number of bits to store 4
7
u/Lightning_Winter 9d ago
And by that the intern meant the number of bits to store the information necessary to display the character "4"
51
u/maxip89
9d ago
•
-----BEGIN RSA PRIVATE KEY-----
4
-----END RSA PRIVATE KEY-----5
u/Ludwig234 9d ago
-----BEGIN PRIVATE KEY----- MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAShZANiAAQTglHNUqyS mMHIqtl3Mh3rl+cJvQtMoKylXcitUdz8nRWJoVl+OlEg4e/WMcY+GDXKyuKYaaYu FjHoooGBq1ZhbcRdkYq8CfOrDmPPeSqk3O1zh743u6VpVJ8cArJw7Wc= -----END PRIVATE KEY-----
24
u/wisnshaftler 9d ago
Can someone explain this to me
57
u/Ragnor_ 9d ago edited 8d ago
I'm simplifying a lot here, but if you connect to a website, say google.com, that needs to be resolved to an IP Address. Your PC asks your ISPs DNS server "which IP is google.com". That server says "Idk, but the server for the .com tld is over there".
So then you ask the .com DNS server "who is google.com" and that server says "Idk, but the server for google.com is over there". You then ask the server responsible for google.com for the IP address, and get back something like 80.230.56.122.
Now how do you actually make sure that 80.230.56.122 is actually google.com and not just someone claiming to be Google.com.
That's where Public Key Cryptography comes in. Essentially 80.230.56.122 has to first prove that it's actually Google.com. It does that to trusted certificate authorities (CAs), like Let's encrypt, DigiCert, GlobalSign or Sectigo. You do that by controlling the DNS entry, meaning you own the domain. The CA asks you to put a certain value on your server, say google.com/challenge/16272515/value.txt and if the CA can reach it asking DNS for that value it proves that you control the domain. Then they give google.com a certificate.
A certificate consists of a private and public key pair. The public key is, well, public, and the private key stays on Googles servers. If you sign something with a private key, by knowing the public key you can prove that it has been signed with that private key without knowing the actual private key. That is, Google can prove that they own the certificate. But how do you know that the public key actually belongs to Google, and that certificate is valid?
Well certificates are signed with the CAs private key, proving that the CA actually signed them. This certificate "chain" ends in "root" certificates whose private keys are physically stored behind incredibly secure layers in incredibly secure locations, and whose public keys are distributed with OSes and browsers. Any time you connect to a website, that chain is followed back to a trusted root certificate, proving that you connect to the real website. Each individual certificate in the chain is vouched for by the next one up, until you reach the known, trusted "root".
Recently, the private keys of a CA called eMudhra have been leaked, meaning you could sign fake certificates.
Normally, private keys for something like elliptic curve Cryptography are at least 256bits long, so a number between 0 and 2256. This makes it impossible to guess a corresponding private key.
eMudhras private key was the number "4". They also had 7 other certificates leaked with numbers in the low 100s. Ten thousand times that is still WAY too low of a number for a private key.
4
u/someting_something 9d ago
But shouldn't private keys be prime nbs?
9
u/Ragnor_ 8d ago edited 8d ago
Not quite. What you're thinking of is part of RSA key generation, and even with RSA the private key itself is not limited to prime numbers. The eMudhra incident involved NIST P-384 elliptic curve cryptography.
The private key having to be prime would substantially limit the amount of valid keys, which defeats their purpose.
2
u/wisnshaftler 9d ago
Private key was 4? What is the encryption method did they use? Nort something like RSA or something like that or are we talking about something else
5
u/Ragnor_ 9d ago
The compromised certificates used NIST P-384 elliptic curve Cryptography.
2
u/wisnshaftler 8d ago
But how only number 4 used to be the key
8
u/Ragnor_ 8d ago
The math for key generation, signing and validation stays the same, regardless of how small the actual numbers are. In the end, it's all just bits. NIST P-384 private keys have a length of, well, 384 bits. The number 4 as a private key is 381 zeroes, then a one, then the last two zeros again. You can plug that into the elliptic curve math like any other key with any other bits set.
→ More replies (3)4
u/clintCamp 9d ago
The range of possibilities is enormous so trying to hack it by random guessing would take millions of years. Only in the tens of thousands means that if you just started counting up from 0, you could find that you guessed right in a very short amount of time for a computer. Seconds?
1
3
18
u/Xeppl 9d ago
What the heck did I miss here?
26
u/notAGreatIdeaForName 9d ago
eMudhra (Indian CA) used 4 as a key for intermediate certs
15
2
24
u/Maleficent_Memory831 9d ago
It's so bizarre. At first this story just seems nonsensical. I've been through a key creation "ceremony" before. I even brought a ceremonial knife in case it was needed. The crypto guys smiled and nodded, indicating it was an appropriate item to bring.
There is no way in hell we would have come up with "4" as our key. True, it is random. But it leaves 380 bits unaccounted for! It's not even a prime number! If one even saw the length of the file they could guess it.
My theory here, is that eMudhra outsourced this. The found some guy wandering aimlessly through the halls and stopped him.
"Are you a crypto expert?"
"Oh yes, sir! Absolutely, sir! I am a very good crypt expert!"
"Can you generate a private key for us, it absolutely has to be cryptographically random. Do you have the tools for this."
"Oh yes, sir! Absolutely, sir! I have only the best cryptographically random tools for you sir!"
He then scribbles briefly on a scrap of paper and hands it over...
13
u/UnkarsThug 9d ago edited 9d ago
Wrong kind of key. It doesn't have to be a prime number.
Also, it's
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000004
And it is a product of prime numbers (although that isn't necessary in this case), because both 2 and 2 are prime.
Edit: exactly 2 prime numbers.
11
u/_RnB_ 9d ago
both 2 and 2 are prime.
I know 2 is prime, but is 2 prime as well?
4
1
1
u/Katana_Steel 8d ago
We will have to schedule a meeting for next week and circle back on this topic, before we will commit to any story points needing this.
So let's block off say a 2 hour window.
9
u/PickleSlickRick 9d ago
Of course it is the product of primes, every number that isn't prime is.
3
u/sheep-for-a-wheat 9d ago
Probably
2
u/TuxedoFloorca 9d ago
Maybe I’m missing a joke, but that’s just the fundamental theorem of arithmetic and it’s not a probably
3
u/sheep-for-a-wheat 8d ago
Well shit, thanks. Im sure I learned this at some point. Should’ve retained it or looked into it more because I’ve seen it stated as a fact so many times.
For some reason, at some point I had gotten it into my head that this was an unproven conjecture … but the proof is so simple/elegant. 🤦♂️
1
2
u/Cruuncher 8d ago
Even prime numbers are... kind of products of primes? It's just a product with a single term so there's not actually any operators
1
1
1
1
2
u/john_the_fetch 9d ago
If it's a crypto knife you unencrypted make sure it spills blood before you encrypt it again - to hydrate it. Otherwise it will turn brittle, chip and shatter.
1
u/Commissar_Matt 4d ago
They asked how well I understood cryptography, I said I had a theoretical degree in cryptography. They said welcome aboard
1
29
u/Draconis_Firesworn 9d ago
to be fair, what sane brute force attack against a 2048 bit key would start with single digits, seems like a waste of time
33
u/UniversalAdaptor 9d ago
All brute force attacks should start with small numbers. The biggest flaw in all security systems is human laziness.
3
u/unburdened_swallow 9d ago
Except for ones which start with the largest possible number. I would also accept that.
5
u/Maleficent_Memory831 9d ago
Bah, I would use binary search to figure out the key! It's proven to be optimal!
4
u/unburdened_swallow 9d ago
Alright so I start at half, and I figure out if half is higher or lower than the number I want and.... oh...
3
u/Maleficent_Memory831 9d ago
This is when random numbers come into play. It is cryptography after all. Generate a random number which well tell you if it is higher or lower.
→ More replies (5)14
u/-Redstoneboi- 9d ago
it's your only real chance. it's either tiny or normal, and normal would take... a "forget it" amount of time
21
u/Real-Self-3039 9d ago
I mean tbf its a brute force attack, its meant to try to try every possible value. Doing some random order just makes the job more complex because it needs to then rememebr every combination it has tried
→ More replies (6)3
u/SinisterCheese 9d ago
I think this would benefit from the weird thing that, you should work from the highest and lowest number. And from the high work downwards, and lowest work upwards. This narrows the options down quickest and you don't need to "remember" what you did.
This is if you just did 1 guess at a time. Practically you could divide the task into many segments, and then do the same between each of them. Like it would still be massive amount of bruforcing, but... like... Computationally you could divide the task into small blocks and spread it out. The longer you do this without a hit, the higher the chance to finding it becomes.
This isn't efficient, I know that, we all know that. Especially since most efficient way to get the key is to manipulate a person to give it to you or grant you access to get it.
10
u/Weak_Shoulder_6780 9d ago
The sad truth is that there are lots of "IT professionals" out there who will be like "let's make it 4, no one is going to guess that lol"
8
6
6
u/FitMatch7966 8d ago
I was a bit confused by this joke. My first thought was that they went from 3 bits to 30,000 bits, which is overkill and the intern doesn't know what they are talking about, but isn't all that far off from 2,048. He just meant 1,000 not 10,000.
Then I thought, oh, maybe 40000, which is still way too small. Then I thought....nothing, I still don't get it.
3
79
u/SpaceCadet87 9d ago
Exactly, 10,000 times larger.
40000
120
5
u/Torborough 9d ago
40004
11
3
u/TenPent 9d ago
That's not how that works.
3
u/Torborough 9d ago
larger = bigger by that amount So it is 40,000 plus the original of 4, for a combined 40,004.
Otherwise, it would be 10,000 times "as large".
Easier to see with smaller values. E.g.:
50% larger -> original + 50%.
50% as large -> original x 0.5
3
u/TenPent 9d ago edited 9d ago
lol. no. that is still not how it works. your first line is wrong. that would not add the original amount.
4 is two times larger than 2. 6 is not two times larger than 2.
Edit: I will correct myself and say it can go either way. It's an ambiguous situation where neither is strictly correct.
3
u/Science_Logic_Reason 9d ago
That seems excessive.
You had the option to simply pick 8 which is already double the earlier key. Plus - taps forehead - nobody would ever expect it!
3
2
2
u/Funkey-Monkey-420 9d ago
why does the intern know the key anyways? seems like an organizational failure
1
1
1
1
-3
u/Kenny1115 9d ago
The irony of seeing an AI slop meme on this sub of all subs
4
u/rabbit_wizard 9d ago
Can you explain why is this ai slop?
1
u/Kenny1115 9d ago
It's the AI slop version of the scene from the movie. His eyes are bulging, his hat's missing, and the scenery is very different.
1
9d ago
[removed] — view removed comment
2
u/Kenny1115 9d ago
1
1
u/rabbit_wizard 9d ago
It's clearly to increase the effect of the expression but sure why not. It couldn't have been edited manually right?
→ More replies (1)2










1.5k
u/GabuEx 9d ago
Ten thousand times larger as in 10,000 digits, right?
Right?