It is currently Sun May 19, 2013 9:12 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Posting program hashes
PostPosted: Sat Aug 25, 2012 10:57 am 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Problem

    Here on the site is losing track of an individual file or download location, as with the Simpo PDF to Text situation today. Right now I just do a bunch of digging to try and find an alternative, but unless I already had that program downloaded to my machine, I have no way to verify it.


Solution

    A faster, probably more reliable way was suggested by friend of mine: a search for MD5 hashes on Google. So for example with Simpo, I pasted the MD5 hash and was able to track down a site that didn't come up in my previous search. Additionally, that file is MUCH more likely to be the file that I'm looking for and I don't have to go digging inside the archive file for a version number. This is awesome.

    Because they are considered weak, MD5 and SHA1 are gradually being replaced by more complex hashing methods including SHA256 and SHA512. Since these are still relatively new, maybe one hash value might be useful for tracking down the file and another is more suitable for actual verification.

Recommendation

    Obviously we could just paste a hash value into the entry but to avoid crowding, I also came up with something a bit more involved:

    1. Include a "Hash" link somewhere in the entry. This would go to a sub-page with available values including MD5, SHA-1, SHA256, and SHA256 (as far as I can tell, these are the most popular). Obviously this would be optional and if the poster/updater doesn't fill these out or care, the link would not show up in the entry.

    2. When updating an entry, any changes to version number would mean a second page asking if the user wants to update the hash values. This page would have blanks for available hash values and the options "Ignore/Skip" (leave them empty) "Keep Previous Values" (no change in hash values) or "Save" to add whatever was typed in.

      The "Keep Previous Values" would be necessary if there was a case the version was entered incorrectly or some other oddity (this has come up for me).
  • Ideally old hashes should be somewhere in the edit history in case we have to go back a version due to software phoning home or otherwise causing problems (like when XMedia Recode was somehow broken did a few months back).

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Sat Aug 25, 2012 11:53 am 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
My thoughts:
1. Maintenance nightmare. Quite costly and will be frequently be outdated.
2. When it's outdated, searching for it will probably give only sites with an outdated version.
3. When a link is broken, users can search for the app name. It's far more straightforward, I guess that usually will lead to more results and you usually get the latest version.

So IMHO no solution is actually better than this. But if you want to solve the issue, I suggest a link crawler scanning all downloads links daily and giving some kind of alert when a link is dead for a couple of days.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Sat Aug 25, 2012 12:32 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
Quote:
1. Maintenance nightmare. Quite costly

Why?

Quote:
2. When it's outdated, searching for it will probably give only sites with an outdated version.

True.

Quote:
3. When a link is broken, users can search for the app name. It's far more straightforward, I guess that usually will lead to more results and you usually get the latest version.

I've spent a lot of time fixing dead entries over the past year and oddly app name searching has been a hit-and-miss process. With hashing, I can find and verify the download quickly. We get around problems with Download.com and other sites yet to be named who modify the original executable, as well as whether you trust the place you're downloading from.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Sat Aug 25, 2012 11:27 pm 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
webfork wrote:
Quote:
1. Maintenance nightmare. Quite costly

Why?

When I wrote this I thought about the need to install an app to get the checksums. But now I see that you meant checksums of the installer. Quite sensible and invalidates my remark above.
webfork wrote:
Quote:
3. When a link is broken, users can search for the app name. It's far more straightforward, I guess that usually will lead to more results and you usually get the latest version.

I've spent a lot of time fixing dead entries over the past year and oddly app name searching has been a hit-and-miss process. With hashing, I can find and verify the download quickly. We get around problems with Download.com and other sites yet to be named who modify the original executable, as well as whether you trust the place you're downloading from.

I don't see any mention of an executable modification neither in the thread nor on the cnet site linked from there.
Only installer mods. But IMHO these are not problems for PF to solve. It's rather app developers who are willing to upload their software to crap sites.

Idea: API for app devs that lets them update entries automatically.
Idea2: Torrents for app storage for apps that have their entries kept up to date.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Sun Aug 26, 2012 1:37 pm 
Offline
User avatar

Joined: Wed Apr 11, 2007 8:06 pm
Posts: 3473
Location: US, Texas
>Only installer mods.

    Yes that's a better description.

> But IMHO these are not problems for PF to solve. It's rather app developers who are willing to upload their software to crap sites.
>
> Idea: API for app devs that lets them update entries automatically.


    Mainly the problem I'm trying to solve is the slow transition from freeware to abandonware. Mainly it's the hours and hours of work that people have done over the years that we're basically throwing away when the executable disappears. I don't want to ask Andrew to host the files as we're already using a lot of bandwidth.

> Idea2: Torrents for app storage for apps that have their entries kept up to date.

    Yes, that would be a legitimate and workable alternative that I could probably put together over a weekend. Good call.

    The only weakness is a single point of failure; if no one is seeding or someone can't if someone can't download torrents from their location due to security or other issues, you're stuck. The point of the hashing bit is to be location agnostic -- it doesn't matter where you get it -- assuming you trust PFWC -- you know it's good.

    The hashing idea also has probably the same number of weaknesses so at this stage a torrent seems the most reasonable route.

_________________
Supporting the Electronic Frontier Foundation | DuckDuckGo user | My GPG key | Projects donated to: VLC, CubicExplorer, Ditto, Greenshot, TrueCrypt


Top
 Profile  
 
 Post subject: Hash this out ...
PostPosted: Sun Aug 26, 2012 7:58 pm 
Offline

Joined: Wed Dec 19, 2007 4:14 am
Posts: 509
Location: knoxville TN USA
Hash this out ... :lol: A proposition

Possibly we could post hashes to the comments, if we do a version number and time stamp are appended automatically. (potentially helpful if a new version is unacceptable after an update as well as with abandon-ware etc)

When an application is updated the primary version could be downloaded, hashed and the hash posted to the comments by volunteers.

Finally an option in the entry form (Y/N Dist.) could point out if an application may be freely distributed or not, and Volunteers could host this and make it available through cloud storage like that found with email. (example skydrive)

Maybe this relies too much on the elusive resource Volunteers? ... Perhaps.

But good applications have their supporters who might volunteer to help support their favorite redistributable application.

_________________


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Sun Aug 26, 2012 9:27 pm 
Offline
User avatar

Joined: Sat Mar 31, 2007 2:38 am
Posts: 902
Location: Kce,PL
webfork wrote:
> Idea2: Torrents for app storage for apps that have their entries kept up to date.

Yes, that would be a legitimate and workable alternative that I could probably put together over a weekend. Good call.

The only weakness is a single point of failure; if no one is seeding or someone can't if someone can't download torrents from their location due to security or other issues, you're stuck.

Yeah, I've been thinking about authors seeding their stuff, but it won't work for abandonware.

Well, I think there's a niche for one program, here is not the first place where I thought it would be useful.
A super-simple app for community members who are willing to help; A torrent deamon that you configure once and forget. By configure I mean bandwidth/disk space limits, just that. A project like TPFC would take a template, insert their own artwork and settings, set up a server/tracker telling clients what needs seeding and act as a backup download place (for users who have torrent traffic blocked and things that are w/out seeders for the moment) and ask their users for help. The backup server might not work well for TFPC if bandwidth or space are too limited though. And I'm not sure if TPFC has a big enough community, but I think yes.
webfork wrote:
The point of the hashing bit is to be location agnostic -- it doesn't matter where you get it -- assuming you trust PFWC -- you know it's good.

Indeed.
In fact torrents/ed2k links etc. are nothing but hashes too. I wonder why they are never used as such, for hashing downloads they would do just as well as SHA, but would come with the benefit that when a link is dead, you can get it from other places too.

Overall, hashing seems the simplest option though.
But it opens some new possibilities too. Server could be downloading apps from time to time and checking the checksums. If they change, it could be sending notifications that apps have been updated.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Posting program hashes
PostPosted: Wed Sep 05, 2012 3:43 pm 
Offline

Joined: Wed Jan 12, 2011 3:11 pm
Posts: 43
m^(2) wrote:

It's rather app developers who are willing to upload their software to crap sites.



it might be worthwhile if PFC would post a list of decent sites and also let folks know which ones aren't so good. For myself, i've been downloading free programs for at least 10 years and sometimes i'll stumble onto some site like "FreeDownloadCenter" or something similar and won't have any idea if its bogus or not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group