Feature: Check hash before web upload #166

Closed
opened 2026-01-19 18:29:15 +00:00 by michael · 3 comments
Owner

Originally created by @wc7086 on GitHub.

Verify the hash when uploading on the web, and save the hash field in the metadata. And display the hash field in the web interface. When using curl to upload, provide an upload option similar to -H "sha1: <value>".

Originally created by @wc7086 on GitHub. Verify the hash when uploading on the web, and save the hash field in the metadata. And display the hash field in the web interface. When using curl to upload, provide an upload option similar to `-H "sha1: <value>"`.
Author
Owner

@wc7086 commented on GitHub:

what would the goal of implementing this?

Gives the user a way to verify that the downloaded file is complete and correct. I don't know if providing hash on the download page is redundant, maybe we should wait until more people care about this option before deciding?

@wc7086 commented on GitHub: > what would the goal of implementing this? Gives the user a way to verify that the downloaded file is complete and correct. I don't know if providing hash on the download page is redundant, maybe we should wait until more people care about this option before deciding?
Author
Owner

@paolafrancesca commented on GitHub:

The problem is that you have to trust the server: a malicious server could just receive and return the provided hash even after tampering the upload, and you should donwload the file a check his hash locally in order to be sure this didn't happen.

@paolafrancesca commented on GitHub: The problem is that you have to trust the server: a malicious server could just receive and return the provided hash even after tampering the upload, and you should donwload the file a check his hash locally in order to be sure this didn't happen.
Author
Owner

@paolafrancesca commented on GitHub:

@wc7086 what would the goal of implementing this?

@paolafrancesca commented on GitHub: @wc7086 what would the goal of implementing this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#166