Python wrapper for git-secret.
Project description
GitSecret
Python wrapper for git-secret. 🔐🔐🔐
Check out the documentation.
Pre-requisites
Install git secret
Install git secret using your favorite installation method.
Generate a gpg key
Generate a gpg and passphrase using your e-mail of choice.
gpg --full-generate-key
Using Git Secret
Initialization
from gitsecret import GitSecret
secret_repo = GitSecret("/path/to/repo")
secret_repo.create()
Adding & removing users
secret_repo.tell("my_email@email.com")
secret_repo.killperson("my_email@email.com")
# After removing a person, you need to hide the repo again.
secret_repo.hide()
Adding, encrpyting, and decrypting files
PASSWORD = "mysecretpassword"
secret_repo.add("hello.txt")
secret_repo.hide()
secret_repo.reveal(PASSWORD)
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
gitsecret-0.1.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
gitsecret-0.1.0-py3-none-any.whl
(13.3 kB
view hashes)
Close
Hashes for gitsecret-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e19a26b716cc3e3abf5dfb057e5b34eede3c84dbd8c8e16bd2c8e45553703a |
|
MD5 | 2369569b9f4e0a1618de104388d3db2a |
|
BLAKE2b-256 | 6d92a7c3743dc394c42fa5cd6e73423922b1794dbba3f16db7e8f162b149f225 |