Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check crc of downloaded zip #66

Open
mad4hit opened this issue Jan 31, 2021 · 2 comments
Open

Check crc of downloaded zip #66

mad4hit opened this issue Jan 31, 2021 · 2 comments

Comments

@mad4hit
Copy link

mad4hit commented Jan 31, 2021

Sometime happens that the zip file is corrupted and the program crash.

Is it possible to add the signature check of the downloaded files? and in case the crc test is not passed try to download again the file?

Thanks

@joelverhagen
Copy link
Owner

This is a great idea. In general, for a checksum to be performed we would need an authoritative source for the expected checksum value. CRC is one such option but many software distribution platforms (such as Debian .deb packages) use SHA256 due to its desirable properties. Just to make sure I am not misunderstanding you, is there a reading you mentioned CRC specifically? (maybe I am misunderstanding).

Do you know if it's Tor or Privoxy failing to unzip? My gut says probably Privoxy since 3 sources are used:

private static readonly Uri PrivoxyBaseUrl = new Uri("https://www.privoxy.org/feeds/privoxy-releases.xml");
private static readonly Uri SourceForgeBaseUrl = new Uri("https://sourceforge.net/projects/ijbswa/rss");
private static readonly Uri PrivoxyMirrorBaseUrl = new Uri("https://www.silvester.org.uk/privoxy/");

Perhaps I need to enhance the tool fetching to trip another source if the first one returns a bad ZIP.

@mad4hit
Copy link
Author

mad4hit commented Jan 31, 2021

@joelverhagen , sorry when i was writing this issue i was falling asleep (3am in italy);
To clarify: I was intending the .asc file present in each source of Privoxy, and also present in tor page download. The files uses PGP encryption, so checking that will be fine.

And the download problem is often Privoxy, but once it occurred with tor.

Thanks for the fast reply
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants