Skip to main content

Data Vault 🔒

PyPI version Test

Store and encrypt sensitive data in your git repo.

Installation

Pick your poison:

  • pip install dihi-datavault then datavault
  • poetry add dihi-datavault then poetry run datavault
  • pipx install dihi-datavault then pipx run datavault

Usage

First, create a new vault.

datavault new path/to/vault

This command will...

  • Provide you with a secret to use when encrypting your files
  • Create a folder at path/to/vault where you place files you wish to be encrypted
  • Create a path/to/vault/.encrypted directory to store the encrypted files along with a manifest which tracks the state of files in the vault
  • Create a path/to/vault/.gitignore file which will ignore the unencrypted files

You're now free to add files to your new vault and encrypt them:

echo "apple" > path/to/vault/apple.txt
echo "banana" > path/to/vault/banana.txt
datavault inspect
datavault encrypt

You can also clear out the contents of the vault as needed...

datavault clear-decrypted
datavault clear-encrypted

Now lets say you've just pulled the repo and have none of the original files...

datavault decrypt

Development

Useful commands:

  • poetry run pytest to run the tests
  • poetry publish -r testpypi and poetry publish -r testpypi to test the deployment
  • poetry version X.Y.Z to bump the version, then git tag vX.Y.Z and git push --tags
  • poetry publish to release

Download files

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

Source Distribution

dihi-datavault-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

dihi_datavault-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file dihi-datavault-0.1.0.tar.gz.

File metadata

  • Download URL: dihi-datavault-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.3 Darwin/21.6.0

File hashes

Hashes for dihi-datavault-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1931525cdfc72591ae92ed936111f11dd09d9f49414661977d82b87db42417d5
MD5 6c3d48379b20459b34348d94f959c742
BLAKE2b-256 1a1de3c9cd69982ce0bca9f49dcfa83b81b75aff2f39011ecb8f1c6f3751d2a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dihi_datavault-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.3 Darwin/21.6.0

File hashes

Hashes for dihi_datavault-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a03c8a5baecec31ae9b421a26ed20f8b7d7d314e28395262309f35eae3c4ec0
MD5 f231e1d38454580806a43a24c981602f
BLAKE2b-256 9926a4d7fee8891bf0b7a64dc9db333b8a77f4e74b077b18f9bbcb41520a90a7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.1

2 files

Supported by

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