Hash files into a manifest and verify their integrity after a cloud upload/download/sync — detect silent corruption, truncation or tampering. Standard-library only.
Project description
cloud-integrity-check
Hash your files into a manifest, then verify they are byte-for-byte intact
after a cloud upload, download or sync. Catches silent corruption, truncation
or tampering that you would otherwise not notice. Standard library only
(SHA-256 via hashlib) — no dependencies, no custom crypto.
Install
pip install cloud-integrity-check
Use
# Before uploading: snapshot the integrity of a file or folder
cloud-integrity-check create ~/Documents -o documents.json
# After downloading from your cloud: verify nothing changed
cloud-integrity-check verify documents.json ~/Documents
Output reports per-file OK / CHANGED / MISSING / ADDED, and exits non-zero if
anything changed or went missing — handy in scripts and CI.
As a library
from cloud_integrity_check import compute_manifest, verify
m = compute_manifest("/data")
report = verify(m, "/data")
print(report.intact, report.changed, report.missing)
Why
End-to-end encrypted clouds protect confidentiality; this verifies integrity — that what you get back is exactly what you stored. A practical companion to a zero-knowledge backup. More on private, verifiable cloud storage: priviy.com.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloud_integrity_check-0.1.0.tar.gz.
File metadata
- Download URL: cloud_integrity_check-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6059991caacb9a8df7e30891fa7299d362171519750aa2bb12ed22eb435f9fbe
|
|
| MD5 |
085193b34b49247f973bb06060e92941
|
|
| BLAKE2b-256 |
cb6f1ed3f82f89abf4f62980f36efb295e3b1ed8005a7b511cfab4ad98582f23
|
File details
Details for the file cloud_integrity_check-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cloud_integrity_check-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd64ab76f03c70681b16a8065df1251b3b6373f6538c4d3bbb88a67b93f46d10
|
|
| MD5 |
4181c8f34620d941472d0a26df2e166d
|
|
| BLAKE2b-256 |
24b7fd1cff49e8f89973ea625b71477d18238a31a28af8557ea26d83dacd3ca0
|