Announcement

Collapse
No announcement yet.

md5 digest

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    md5 digest

    Hello,

    If I want to check the md5 digest within a file I can use the following:

    openssl dgst -md5 filename

    I can then check the data against the md5 text file.

    Is there a way to use the above command to make the comparison automatically?

    Thanks
    kubuntu version: 16.04.5 LTS

    Laptop: Toshiba-Satellite-L350

    #2
    md5sum -c might do what you want
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      I can't see from the man page where the signature file would be included for the comparison!
      kubuntu version: 16.04.5 LTS

      Laptop: Toshiba-Satellite-L350

      Comment


        #4
        Try GtkHash if you want a "gui" approach.
        If you think Education is expensive, try ignorance.

        The difference between genius and stupidity is genius has limits.

        Comment


          #5
          If you have the service added to Dolphin you can right click on a file and choose properties. One of the tabs is "Checksums". It offers md5, sha1 and sha256. When the sum displays a copy button allows you to copy it for pasting elsewhere, or, you can visually compare. I know you are asking for a tool that compares the computed checksum with the reported checksum and returns "good" or "bad", assuming the file being checked has the checksum embedded.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            I installed 'checksum', on checking the md5 in Dolphin I received the message 'could not find notify-send'. I was checking a tar.xz file. I wonder if the programme works for compressed files, or if I have a missing module. libnotify4 is installed?

            UPDATE:

            I have now installed the missing module.

            I tested the md5 calculation using Dolphin. The md5 is appearing in Notifications in the bottom pane. Is there a way to make it appear as a text file in, say, kate; or, is this the best that I can do?. In any event, it is a useful addition to Dolphin.
            Last edited by anonprivate; Apr 20, 2017, 03:08 PM.
            kubuntu version: 16.04.5 LTS

            Laptop: Toshiba-Satellite-L350

            Comment


              #7
              Originally posted by anonprivate View Post
              I can't see from the man page where the signature file would be included for the comparison!
              you make the file its in the format MD5 <file>

              example of the file would be
              3454353533535353535 somefile

              you can use md5sum somefile > outputfile to make the file but it will include the full path of 'somefile' if you plan to move the md5 file and the checked file you should edit the md5 to have only the file name.
              Mark Your Solved Issues [SOLVED]
              (top of thread: thread tools)

              Comment


                #8
                I have the md5 signature. I have the compressed file, so what would be the equation to test the compressed md5 file against the given text md5 file.
                kubuntu version: 16.04.5 LTS

                Laptop: Toshiba-Satellite-L350

                Comment


                  #9
                  I use sha512sum. I create a text file called SHA512SUM in the Download Directory. In that file I paste the copied sha512sum value line for the downloaded .iso file in question. Once I have the downloaded .iso file I can compare it's hash against the content of the text file. For example, using a debian OS download I have:

                  The .iso file:
                  debian-live-8.1.0-amd64-kde-desktop+nonfree.iso

                  The text file:
                  SHA512SUMS

                  Content of the text file:
                  0bd218f11f73f1e0d8d6ab1a3ee8cdae13e217f8c5a9eb9edd 2be9ec1f6d3f6a89d3a13564602d606b8ac2333557a7bd5a4a 9b667e4b5834a3c7d8693a9c326d debian-live-8.1.0-amd64-kde-desktop+nonfree.iso

                  The console command:
                  sha512sum debian-live-8.1.0-amd64-kde-desktop+nonfree.iso && cat SHA512SUMS

                  The output:
                  0bd218f11f73f1e0d8d6ab1a3ee8cdae13e217f8c5a9eb9edd2be9ec1 f6d3f6a89d3a13564602d606b8ac2333557a7bd5a4a9b667e4 b5834a3c7d8693a9c326d debian-live-8.1.0-amd64-kde-desktop+nonfree.iso
                  0bd218f11f73f1e0d8d6ab1a3ee8cdae13e217f8c5a9eb9edd2be9ec1 f6d3f6a89d3a13564602d606b8ac2333557a7bd5a4a9b667e4 b5834a3c7d8693a9c326d debian-live-8.1.0-amd64-kde-desktop+nonfree.iso

                  This makes it very easy to visually check if the results are the same. It isn't necessary to look at every single digit of the two hash's to determine if they are the same; it's enough; usually; to simply check the first several digits and the last several digits as I've emphasized in the output above. But it is rather easy to visually check the full values of both, as the one is directly under/over the other.
                  Last edited by Snowhog; Apr 20, 2017, 12:05 PM.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment

                  Working...
                  X