pikvm/pikvm

Checksums of Drive files

ajorg opened this issue · 2 comments

ajorg commented

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
It would be great if, after / during uploading / downloading a file, PiKVM would calculate checksums of the file. Especially when downloading from a URL, it would be good to be able to verify that the download matches the advertised checksum.

Checksums can be calculated while streaming data, so that could be a nice way to implement it. If not, it uses a lot of compute at once, so it might be best to have a button to trigger the calculation.

SHA-256 is considered standard today, but a lot of things still use SHA-1, and some still use MD5, so it might be wise to support multiple checksum types.

Describe alternatives you've considered
I could log into the PiKVM terminal and do a checksum myself, but that's quite tedious. Or I could do a checksum locally and hope nothing got corrupted.

Additional context
I mentioned the idea in the Discord #chat channel and a couple of folks there quickly agreed they've wanted this too.

Hi. I can do this and show checksums in the UI, but automatic comparison is hardly possible, because there is nothing to compare, there is no standard that describes where checksums should lie in relation to files in the URL.

ajorg commented

I didn't mean to imply that the verification be automatic, only that the checksums be displayed so that verification is possible. Thanks for considering it!