Just take the string as bytes and hash it ffs

  • expr@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    You don’t have to take arbitrary bytes. UTF-8 encoded strings are just fine and easily handled by libraries.

    • Björn Tantau@swg-empire.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      At least with e-mail clients different clients on different operating systems use different encoding by default for their passwords.