Just take the string as bytes and hash it ffs

  • CosmicTurtle0@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    30 days ago

    I’ll admit I kind of typed this without thinking it through. In a secured site, the password would be hashed and salted before storing in the database.

    Depending on where you’re doing the hashing, long strings might still slow you down. That being said, from a security standpoint, any gain in entropy by adding characters would be negligible past a certain point. I don’t remember what that number is but it certainly isn’t in the thousands.

    • rain_worl@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      you might compare 1,000 to 10,000, but more like 0.1% to 0.01%
      meaning of this? no. bad grammar.