Login
You're viewing the code4lib.social public feed.
  • Nov 26, 2026, 8:12 AM

    @khinsen @screwlisp @4censord

    The argument goes as follows: between you and the server there is ISP. What follows:

    1) If you can't ascertain that the message was not tampered with, then ISP can inject ads, or MITM can inject malware

    2) if you don't have your communication encrypted, then ISP (or MITM) can learn more about you - listen to your passwords, build a profile for your preferences etc

    And both points are valid in untrusted network (internet is very much that). IMO cryptography is not the problem. As noted in sibling messages, crypto should be easier to implement and easier to test against known attack vectors; relevant math is often not that hard (to implement); the problem comes from the dressing.

    Take as an example the Heartbleed attack - it was exploited by using a feature of the protocol that nobody uses in practice (heartbeat).

    EDIT so cryptography standards should limit their scope to:

    - signing messages
    - encrypting the channel

    and leave everything else to the application layer.

    What's more (and implicit from the above), the application layer should be fully oblivious about whether the encryption is used or not, it should be handled transparently on the OS level.

    Then applications don't take the responsibility for whether data is encrypted or not and it is on sysadmins.

    EDIT2 and of course, making it transparent to applications and depend on the OS can be screwed up royally :)

    💬 1🔄 0⭐ 0

Replies

  • Nov 26, 2026, 12:59 PM

    @jackdaniel That's the engineering answer, which presumes a certain level of abstraction (server/client, independently of content and user) and the quest for a universal solution.

    My blog requires less protection than a bank because the threat model is very different. No big entity cares about my blog. They would envisage MITM attacks or injecting malware only if my blog is one out of many sites they could attack at the same time.

    @screwlisp @4censord

    💬 3🔄 0⭐ 0
  • Nov 26, 2026, 1:03 PM

    @jackdaniel From that point of view, my blog should be based on something like Gemini, rather than the same tech stack that banks use. But unlike today's Gemini implementations, the blog tech stack should be interoperable with the bank tech stack. Linking back and forth in particular.

    @screwlisp @4censord

    💬 0🔄 0⭐ 0
  • Nov 26, 2026, 1:07 PM

    @khinsen @screwlisp @4censord

    I agree that there are different threat models for a bank and for a blog, where the former is far more critical.

    That said, the latter also has issues, most notably injecting ads and tracking users. They don't have to care explicitly about your blog if they can do that for "all unencrypted traffic".

    I think that the universal solution is better than maintaining separate compatibility bridges (your sibling post). You may have one standard (that ensures compatibility) and multiple implementations.

    But all that hangs on the requirement, that the standard must be reasonably easy to implement and reasonably easy to test against known malicious vectors.

    Alternative (interoperable stacks) kind of defeats the point, because now you have:

    [n implementations] - [1 standard]

    and then you'd have

    [n A implementations]
    -
    [n A-B bridges]
    -
    [n B implementations]

    _I don't think_ that this would be a good outcome.

    💬 1🔄 0⭐ 0
  • Nov 26, 2026, 2:32 PM

    @jackdaniel It's not an obvious trade-off for me. One aspect is efficiency vs. robustness through diversity. The first one is much easier to quantify than the second, so efficiency usually wins.

    Diversity is possible at the protocol level and at the implementation level, with different trade-offs. You seem to favor the implementation level. Fine with me!

    @screwlisp @4censord

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0