ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Checksum verification

    IT Discussion
    checksum sha256sum md5sum
    3
    13
    785
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch @stacksofplates
      last edited by

      @stacksofplates said in Checksum verification:

      Is it just the checksum on a page or is there content around the checksum?

      on a page as you can see.

      stacksofplatesS 1 Reply Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates @JaredBusch
        last edited by stacksofplates

        @JaredBusch said in Checksum verification:

        @stacksofplates said in Checksum verification:

        Is it just the checksum on a page or is there content around the checksum?

        on a page as you can see.

        that wasn't here when I asked. There's not a way as far as I know but I think you can do this:

        #!/usr/bin/env bash
        
        sum=$1
        file=$2
        
        file_sum=$(sha256sum $file | awk '{print $1 }')
        
        diff <(echo $1) <(echo "$file_sum")
        

        Then just do script.sh copiedSum file.txt

        JaredBuschJ 2 Replies Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates
          last edited by

          Not elegant, but I don't personally know of another way. If you don't get output, they are the same.

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @stacksofplates
            last edited by

            @stacksofplates said in Checksum verification:

            that wasn't here when I asked.

            Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...

            stacksofplatesS 1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates @JaredBusch
              last edited by

              @JaredBusch said in Checksum verification:

              @stacksofplates said in Checksum verification:

              that wasn't here when I asked.

              Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...

              Ah thought maybe I was getting some sarcasm. My bad.

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @stacksofplates
                last edited by

                @stacksofplates said in Checksum verification:

                @JaredBusch said in Checksum verification:

                @stacksofplates said in Checksum verification:

                Is it just the checksum on a page or is there content around the checksum?

                on a page as you can see.

                that wasn't here when I asked. There's not a way as far as I know but I think you can do this:

                #!/usr/bin/env bash
                
                sum=$1
                file=$2
                
                file_sum=$(sha256sum $file | awk '{print $1 }')
                
                diff <(echo $1) <(echo "$file_sum")
                

                Then just do script.sh copiedSum file.txt

                Damn. well i guess I could go find the md5/sh256 code and submit a pull req.. but bleh.. so much work.

                1 Reply Last reply Reply Quote 0
                • 1
                  1337
                  last edited by

                  Maybe something like this?

                  echo 'a5a13fa3cce0127a4fb3dc211c58f36437e27f504cf64a9f13233b08d63791ba  snomPA1-8.7.5.75-SIP-f.bin' | sha256sum -c
                  
                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @stacksofplates
                    last edited by

                    @stacksofplates said in Checksum verification:

                    @JaredBusch said in Checksum verification:

                    @stacksofplates said in Checksum verification:

                    that wasn't here when I asked.

                    Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...

                    Ah thought maybe I was getting some sarcasm. My bad.

                    S'ok, I can see I worded it badly.

                    1 Reply Last reply Reply Quote 0
                    • 1
                      1337
                      last edited by 1337

                      Did the piping example I posted above satisfy your switch requirement even though it isn't a switch?

                      Or maybe you're looking for something else?

                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @1337
                        last edited by

                        @Pete-S said in Checksum verification:

                        Did the piping example I posted above satisfy your switch requirement even though it isn't a switch?

                        Or maybe you're looking for something else?

                        Was busy dealing with the firmware update itself.
                        Yes. That works simply enough. Still annoyed that they don't have a switch..

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post