this post was submitted on 13 Nov 2026
1147 points (97.2% liked)

Programmer Humor

34196 readers
826 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] rockerface@lemmy.cafe 152 points 4 days ago (26 children)

2FA is a good thing. You don't want it to go away.

[–] drkt@scribe.disroot.org 84 points 4 days ago (1 children)

I don't think the 2FA is the issue this comic is attempting to convey.

[–] urushitan@kakera.kintsugi.moe 15 points 4 days ago (1 children)

Except that it needs another jump for autofill 2fa

[–] Hal@piefed.nz 3 points 4 days ago

2FA on the login form is a thing for some sites,

[–] Venator@lemmy.nz 69 points 4 days ago* (last edited 4 days ago) (2 children)

Except when it's just an email, or worse, a txt message, or worse, a whatsapp message, with no other option for using a proper 2fa generator...

But also, not every site needs 2fa, sometimes I really couldn't care less if someone managed to hack into something, because I can just make a new account if that happened...

[–] ilinamorato@lemmy.world 41 points 4 days ago (4 children)

What really bugs me is that TOTP is objectively easier than any other form of 2fa. Just import the library, add the field on your login form, and you're done.

  • Email verification is annoying to code, it requires SMTP or an email gateway, is slow for the user, is risky from a security perspective, and to generate the code you probably still have to implement TOTP.
  • SMS/RCS is even more annoying to code, it almost inevitably requires a third-party gateway, it can work differently if the user is in a different country or on a MVNO or in a low-signal area or just has the wrong astrological sign, is very slow for the end user, is almost useless from a security perspective, and you STILL have to implement TOTP.
  • WhatsApp messages are somehow even more annoying to code than that, requires an api interaction with Meta (which is never fun and poorly documented), requires the end user to have an account with a specific third party, is slow for the end user, relies on another company's security posture to determine your own, and you STILL have to implement TOTP.
  • Making your own app for 2fa is undoubtedly the worst: not only is it annoying to code, it's an ongoing annoyance that is strained through multiple app stores, adds an additional maintenance and support load, adds additional technical debt, adds an unnecessary attack vector, requires users to download another app, is often unreliable, is often pretty slow for the end user, is a total crapshoot from a security perspective, and guess what? YOU PROBABLY STILL HAVE TO IMPLEMENT TOTP.

Any company that chooses SMS or email verification over TOTP emphatically does not know what they're doing.

[–] Venator@lemmy.nz 18 points 4 days ago (1 children)

2fa by email is probably slightly easier than TOTP, if the account verification via email is already implemented, but yeah, it's not like it's significantly easier...

[–] ilinamorato@lemmy.world 8 points 4 days ago* (last edited 4 days ago)

That is a fair point. But again, you probably have to implement TOTP or something like it anyway, to generate the code.

[–] Kangae_Hishiryo@scribe.disroot.org 1 points 2 days ago* (last edited 2 days ago) (1 children)

They know: they're selling your data. They don't mind about your security

[–] ilinamorato@lemmy.world 2 points 2 days ago (1 children)

But all of those data points are "cheap." They already ask for email; I haven't signed up for a service that didn't require an email address in...thirty-ish years? Phone numbers are easily available on the dark web and essentially worthless to data brokers. A connection to WhatsApp would get you almost nothing, since Meta's already sucking up all of that data. The custom app is the most potentially lucrative of those methods from a data perspective, but it's also undoubtedly the costliest, which is why you see it the least often; you have to evaluate the ROI, and that algorithm is never favorable.

They don't care about your security, that much is beyond doubt. And as a result nobody has updated that code since before TOTP was adopted, which I think is the real reason.

Well, you have a point, I have to admit. 🤝

[–] kungen@feddit.nu 5 points 4 days ago (1 children)

The real reason is conversion. The majority of users aren't good at technology, so you risk them losing their TOTP secret. Then the user either just says "screw this site" and leaves, or they take time getting customer support to reset their key.

So depending on the branch and customer base, it can often be much "cheaper" in the end to send login codes via email instead of using TOTP.

[–] ilinamorato@lemmy.world 1 points 2 days ago

Maybe. And I think that could make sense as the PM's answer, but I also think that a TOTP app is starting to become mainstream enough that it's not a huge deal.

[–] Miaou@jlai.lu 4 points 4 days ago (2 children)

You don't have to implement totp for these alternatives... The "thing" about totp is that there's a shared secret and a timestamp. Due to potential drift in clocks you need a window and period to know how many time steps to test, and how long each is.

But with an email/SMS/WhatsApp, there's no shared secret. So you can simply send a random code, and store server side when it was generated. Totp makes no sense in that case.

Not that totp is difficult to implement at all. My implementation for work was what, less than 200 lines of C++ I think? I didn't implement the sha1 myself though.

[–] assa123@lemmy.world 2 points 4 days ago

You do have to implement TOTP, just not necessarily RFC 6238. Time-based one-time passwords require a shared secret, a shared time and a time-to-live. The shared secret is usually the key for generating the code, but can be the code itself. The shared time is still needed in mail authentication between the code generator and the code validator. The thing that's usually different is the time to live, but in RFC 6238 it is a parameter, so you can implement mail verification with it and a long TTL.

[–] ilinamorato@lemmy.world 3 points 4 days ago

An earlier version of that comment said "something like TOTP," but I guess I left that out while I was revising it. My point is you have to implement something that does most of what TOTP does anyway, so why not just use the version that's already been stress tested?

[–] richardisaguy@lemmy.world 3 points 4 days ago

A local marketplace service in brazil only allows me to login using whatsapp codes or sms. When i enter the passowrd they ask for a whatsapp code

[–] LodeMike@lemmy.today 21 points 4 days ago (1 children)

I don't want it for like 95% of the logins I have.

[–] Stormy@thelemmy.club 11 points 4 days ago (7 children)

Seriously. Why would i care if someone logs into most of them. What are they going to do watch a movie on my Netflix account, play my kids roblox games, or change my crew on my Rockstar account? It's unnecessary bs.

[–] farmgineer@nord.pub 25 points 4 days ago (3 children)

The bigger issue is gaining account details and personal info for identity theft.

[–] Stormy@thelemmy.club 11 points 4 days ago* (last edited 4 days ago) (1 children)

Which also doesn't matter anymore because companies sell our data all the time or just give it away through their own data insecurities. Or yanno, white pages. com and similar exists and its pretty easy to find anything about anyone anytime.

[–] Ghoelian@piefed.social 3 points 4 days ago (6 children)

They don't sell your ID or credit card information though, which is information a lot of these kinds of services have.

load more comments (6 replies)
[–] BillionaireStew@lemmy.world 3 points 3 days ago* (last edited 3 days ago)

Who cares if someone steals your identity? Just go on the dark web and buy a new one.

load more comments (1 replies)
[–] urandom@lemmy.world 10 points 4 days ago (6 children)

Any account that does payment (like your netflix one), will be used to test out stolen credit cards. This will in turn flag your account for fraud. You might not want that. Unless you do, I don't know

load more comments (6 replies)
[–] halcyoncmdr@piefed.social 3 points 4 days ago

It's not about a specific account, it's about compromising your info.

The info one company considers enough to verify you when you call or chat with customer service, another company will give out freely. They can then hop and skip through those to get access to one of your accounts they actually want.

Your entire online security is only as secure as your most insecure account.

load more comments (3 replies)
[–] CanadaPlus@lemmy.sdf.org 5 points 4 days ago* (last edited 4 days ago) (4 children)

I get the theory, but if it itself relies on some login-based service (like email) it becomes a kind of chicken and egg problem.

load more comments (4 replies)
[–] RisingSwell@lemmy.dbzer0.com 3 points 4 days ago (1 children)

My work 2fa can go away. I don't give two shits if everything in the work app is printed in global papers, just stop making me go through a 5 step process to see my fucking roster.

load more comments (1 replies)
[–] FishFace@piefed.social 3 points 4 days ago

Almost all sites should allow me to choose whether I want 2fac. And they shouldn't prompt for it nearly as often as they do - some services do it for every login, most seem to do it every month at least.

load more comments (20 replies)