Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Like A Duck ( likeaduck@programming.dev ) deleted by creator to Programmer Humor@lemmy.ml · 3 years ago

Creating a password in 2023 be like

programming.dev

message-square
39
link
fedilink
271

Creating a password in 2023 be like

programming.dev

Like A Duck ( likeaduck@programming.dev ) deleted by creator to Programmer Humor@lemmy.ml · 3 years ago
message-square
39
link
fedilink
  • Sonotsugipaa ( Sonotsugipaa@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    24
    ·
    3 years ago

    Infuriating fact: if a service has maximum password length limits (lower than 1000 characters), they’re reversibly storing your password and if they’re that lazy it’s probably plain text

    • Xandris ( Xandris@kbin.social ) 
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      reversibly?

      • Gurfaild ( Gurfaild@feddit.de ) 
        link
        fedilink
        arrow-up
        8
        ·
        3 years ago

        In the least bad case, they encrypt the password instead of hashing it, making it possible to decrypt the password.

        In the most common case, they store the password in plaintext, so there isn’t even any encryption to be reversed.

    • Sibbo ( Sibbo@sopuli.xyz ) 
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      They may just base their limit on one or a few block sizes of the hash function.

      • kevincox ( kevincox@lemmy.ml ) 
        link
        fedilink
        arrow-up
        7
        ·
        3 years ago

        That sounds incredibly unlikely. I would be good money that 99% of password length limits are not based on concrete limits. Things like “100 should be enough 🤷” must be way more common.

        I doubt 1% of programmers are away of their hashes block size. It is also probably irrelevant since after the first round everything is fixed size anyways.

    • lukas ( lukas@lemmy.haigner.me ) deleted by creator
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 years ago

      deleted by creator

    • argv_minus_one ( argv_minus_one@beehaw.org ) BannedBanned
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Not necessarily. There is another reason. Password hash functions like PBKDF2 are, by design, slow. Allowing extremely long passwords while using such a hash function creates a denial-of-service vulnerability.

      Assuming the hash function takes proportionally more time to compute the hash of a longer password, of course. I believe they do, but I’m not certain.

    • rubythulhu ( rubythulhu@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Fun fact: Lemmy instances cap at 60. they’re not storing reversibly, they’re just using bcrypt and rather than pre-hashing the pw before bcrypt like most bcrypt users do, they just truncate to 60.

      • Sonotsugipaa ( Sonotsugipaa@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        60 makes sense, 14 does not

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 41 users / week
  • 42 users / month
  • 1.45K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code