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

File checksum #11

Open
tritemio opened this issue Jan 29, 2016 · 0 comments
Open

File checksum #11

tritemio opened this issue Jan 29, 2016 · 0 comments

Comments

@tritemio
Copy link
Contributor

Would be nice to have to option to create a checksum when creating a Photon-HDF5 files.

Why?

The checksum can be used to verify that the data file is the original unmodified one. It protects against accidental modifications (such as editing in HDFView, or other programs). Could be also a protection against disk corruptions of download errors, but in general these error would be detected anyways because the file would become illegible.

How?

A checksum (for example SHA1) can be saved in a sidecar text file like this:

my_photon_hdf5_file.hdf5
my_photon_hdf5_file.sha1

The checksum can be distributed with the data file to verify the data file was not modified.

Phconvert can create this checksum automatically when creating a file and can provide a function to verify a file against its checksum.

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

1 participant