• anewfox@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 hours ago

    “reversible” is the wrong term. if a major one-way hash function was reversible, it would be huge news like it was with md5. the problem is they can associate the matching hashes, not that they can reverse a hash.

    details matter, because as written, your comment contains misinformation about one-way hash functions being reversible.

    • MimicJar@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      That’s fair. It’s not trivially reversable in a cryptographic sense, it’s just a simple rainbow table of ~1 billion entries.

      I stand by it being trivial, but I understand the distinction.

    • Theoriginalthon@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      You don’t need to reverse it just calculate<000-00-0000 John doe> through <899-99-9999 John doe> until the hashes match, they you have effectively ‘reversed’ the hash. Probably will take less than 5 hours on modern hardware. Quicker if you can exclude dead people’s numbers, known numbers etc

    • rockSlayer@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 hours ago

      I know that there were a lot of problems with md5 such as trivial collisions, but reversibility was not one I’ve heard about

      • MimicJar@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        I added a comment elsewhere, but by reversable I just mean that there are only about 1 billion possible hashes. You can build a table of all possible hashes and lookup the answer that way.

        What’s important is that is doesn’t matter what algorithm you use because the total is still about 1 billion.

        You can use the most sophisticated algorithm available, but it doesn’t matter because you have a very limited pool of possible answers. I can list every number between 1 and 1 billion.