Hasher equivalent for Linux/ Ubuntu

Discussion in 'all things UNIX' started by aigle, Apr 28, 2011.

Thread Status:
Not open for further replies.
  1. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    I am using Hasher in windows to check and compare file hashes. Is there something like that for Ubuntu. I need some thing with a GUI?

    Thanks
     
  2. JConLine

    JConLine Registered Member

    Joined:
    Apr 16, 2009
    Posts:
    107
    I've been using GtkHash for some time - very good.

    Jim
     
  3. Trespasser

    Trespasser Registered Member

    Joined:
    Mar 1, 2005
    Posts:
    1,194
    Location:
    Virginia - Appalachian Mtns
    aigle,
    I've been using this nautilus script called Hash Checker...

    http://gnome-look.org/content/show.php/Hash Checker 3.9.9?content=129309

    and its great and simple to use. It checks md5, sha1, and sha256. You just right-click on the file you wish to check the hash of....go to scripts...click on Hash Check...a box pops up with 3 check boxes (sha1, sha256, md5...default is md5). Its creator has automated the whole process for its "install", if you want to call it that. Most nautilus scripts are placed in the /home/user/.gnome2/nautilus-scripts folder.

    Later...

    Bob
     
  4. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    Thanks.

    Can anyone of these also compare hashes?
     
  5. JConLine

    JConLine Registered Member

    Joined:
    Apr 16, 2009
    Posts:
    107
    GtkHash will hash a string, a file, or a group of files, but I don't think it will compare file hashes.

    It's in the Ubuntu repository-check it out.

    Jim
     
  6. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    Thanks.

    Really it,s hard to find sometimes very basic software in linux. Comaring hash without a software is not a pleasant thing to do. I wish there was a software in linux to do that, Windows has doazens of such software.
     
  7. kavulix

    kavulix Registered Member

    Joined:
    Oct 10, 2010
    Posts:
    3
    You might check out hashmonster.sourceforge.net

    I developed the application a while back but didn't think it would be of much interest to anyone so I never released the source. I just uploaded it a few moments ago after seeing your post. There aren't many features but for simple hash comparisons (md5 or sha1) it does the job. Just paste the hash to compare in the bottom text box, select a file or enter a file path in the top text box and then press the "generate and compare" button.
     
  8. Pedro

    Pedro Registered Member

    Joined:
    Nov 2, 2006
    Posts:
    3,502
    I know you want a GUI, i don't know of one. Maybe kavulix has the answer.

    As a reference though, the reason i don't know of one is that i'm satisfied with the md5sum program.
    On a terminal, you just
    Code:
    md5sum <filename>
    and you'll get
    Code:
    <md5>  <filename>
    To check if the MD5 is the same as another, you could
    Code:
    md5sum <filename> | grep <MD5 you want to compare>
    If it's the same, the typical output is printed.
    Code:
    <md5>  <filename>
    Otherwise, nothing is printed.

    Alternatively, you can output the md5 number to a file, for example
    Code:
    md5sum filename > filename.md5
    And to check, provided both filename and filename.md5 are on the same directory, cd into it and
    Code:
    md5sum -c filename.md5
    (note that the md5 extension isn't actually needed).

    If it's the same md5, the output will be
    Code:
    <filename>: OK
    Otherwise:
    Code:
    <filename>: FAILED
    md5sum: WARNING: 1 of 1 computed checksum did NOT match
     
  9. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    Thanks, I will try it. Before I was using Hasher in wine.
     
  10. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    Thanks a lot Pedro but why i should remember or write down so many commands when same thing can be done via GUI in shorter time with more ease. :)
     
  11. Pedro

    Pedro Registered Member

    Joined:
    Nov 2, 2006
    Posts:
    3,502
    Maybe it looks like a lot of commands, but it's actually pretty simple. Try them if you want.

    Perhaps the only thing that may look "off" is the '| grep' part.
    | pipes the output of a command before it, to the command after.

    So, 'md5sum filename | grep <md5 number>', in parts:

    - First, 'md5sum filename' outputs an md5 number and the file name on the same line. Usually, it would be printed on the terminal.

    - But because we piped the output to grep (the '|' part), grep now handles that line and does what you told it to, which in this case is 'grep <md5 number>', which means, search for '<md5 number>'. If it finds it, it prints it. If not, nothing gets printed, because it didn't find it.
     
  12. aigle

    aigle Registered Member

    Joined:
    Dec 14, 2005
    Posts:
    11,047
    Location:
    Saudi Arabia/ Pakistan
    Hi, I wil still prefer GUI, sorry for that. :D
     
Loading...
Thread Status:
Not open for further replies.