Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud_integrity_check-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloud_integrity_check-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for cloud_integrity_check-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6059991caacb9a8df7e30891fa7299d362171519750aa2bb12ed22eb435f9fbe
MD5 085193b34b49247f973bb06060e92941
BLAKE2b-256 cb6f1ed3f82f89abf4f62980f36efb295e3b1ed8005a7b511cfab4ad98582f23

See more details on using hashes here.

File details

Details for the file cloud_integrity_check-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cloud_integrity_check-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd64ab76f03c70681b16a8065df1251b3b6373f6538c4d3bbb88a67b93f46d10
MD5 4181c8f34620d941472d0a26df2e166d
BLAKE2b-256 24b7fd1cff49e8f89973ea625b71477d18238a31a28af8557ea26d83dacd3ca0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page