• kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    10 days ago

    Fair, it could, yes. The bigger problem was definitely the ability to brute force the passwords though, as surfacing the hash still leaves them encrypted which isn’t super valuable without access to the hashing algorithm.

    • tiramichu@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      10 days ago

      Right, so the hashing and comparison of hashes also can happen in the back end, and the API response can just be true/false whether it’s a match or not. That way the hashes and the hashing algorithm could all stay private.

      The comparison API would of course also need its own rate limits and backoff etc to ensure it cannot be used to bruteforce attempts until you get a ‘true’ back.

      All in all it’s a terrible idea though and nobody should actually do this.