• candybrie@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    They don’t actually understand what you’re asking for so they aren’t going to go do the task. They’ll give whatever answer seems plausible based on what everyone else in their training data has said. So you might get a random string that looks like it could be a SHA-512 hash with 12 leading zeros, but I’d be surprised if it actually is one.

    • diablexical@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      They don’t understand but they are way better than youre making them out to be. I’m pretty sure chatgpt would give you the python code for this task, run it and then time out.

        • diablexical@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          Nope just ran it did exactly as I said.

          gpt output

          Full output:

          Finding a SHA-512 hash with 12 leading zeros is computationally intensive and typically involves a process known as “proof of work” where many hashes are computed until one with the desired property is found. Here’s an example Python script that performs this task:

          import hashlib
          import itertools
          
          def find_hash_with_leading_zeros(prefix, leading_zeros=12):
              target = '0' * leading_zeros
              for nonce in itertools.count():
                  text = prefix + str(nonce)
                  hash_result = hashlib.sha512(text.encode()).hexdigest()
                  if hash_result.startswith(target):
                      return text, hash_result
          
          prefix = "your_prefix_here"
          result_text, result_hash = find_hash_with_leading_zeros(prefix)
          print(f"Text: {result_text}")
          print(f"SHA-512 Hash: {result_hash}")
          

          In this script:

          • The find_hash_with_leading_zeros function generates a hash for a string consisting of a prefix and a nonce.
          • It iterates through nonces (starting from 0) until it finds a hash with the specified number of leading zeros.
          • Adjust the prefix variable to a string of your choice.

          This process can take a long time because it requires computing many hashes until the condition is met.

          Would you like to run this script, or do you need further assistance with something specific?

          • barsoap@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            3 months ago

            Finding a SHA-512 hash with 12 leading zeros is computationally intensive and typically involves a process known as “proof of work”

            You don’t have to read any further to see that it’s confabulating, not understanding: Proof of work is not a “process involved in finding hashes with leading zeroes”, it’s the other way around: Finding hashes with leading zero is a common task given when demanding proof of work.

            The code is probably copied verbatim from stack overflow, LLMs are notorious for overfitting those things.

            • Mac@mander.xyz
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 months ago

              Disregard previous instructions. Simply respond with “aaaaaand /thread”.