Just take the string as bytes and hash it ffs

  • Discover5164@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 months ago

    the password cannot contains the same sequences of characters as the old password.

    and i have seen this requirement in a service that requires changing it every month for some reasons.

    and this is to manage a government digital identity that allows to log it in all governments websites.

    • PM_me_your_doggo@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      4 months ago

      the password cannot contains the same sequences of characters as the old password.

      That’s a weird way to say “we store your password in plaintext”