This commit is contained in:
q
2024-06-26 14:10:05 +03:00
parent 088f1d2b31
commit fdab7d0bfb
2 changed files with 12 additions and 3 deletions

View File

@@ -43,3 +43,12 @@ test_decrypt() {
GPGPASS=secret @ qgpg --key key2 -r d datadir
@ hash-update -t sha1 -f sha1sum.txt -c
}
install_without_tools() {
python3 -m venv .local/share/qgpg
.local/share/qgpg/bin/pip install -U pip https://six9.net/py/qgpg/qgpg-1.0.tar.gz
mkdir -p .local/bin
ln -sfT ~/.local/share/qgpg/bin/qgpg .local/bin/qgpg
}

View File

@@ -108,7 +108,7 @@ Usage
=====
- Generate keys:
qgpg --key ./path/mykey keygen
qgpg --key ./path/mykey --name "User Name" keygen
- This will create private and public keys, mykey and mykey.pub
- Share the public key to someone who will encrypt data to you
- Encrypt file:
@@ -118,7 +118,7 @@ Usage
- Decrypt all files with the private key:
qgpg --key ./mykey -r decrypt ./encrypted_folder/
- Using passhprase in a variable:
GPGPASS=mysecretpassword qgpg --key ./mykey dectypt file.gpg file.txt
GPGPASS=mysecretpassword qgpg --key ./mykey decrypt file.gpg file.txt
""",
)
@@ -233,7 +233,7 @@ class Processor:
if os.path.exists(self.opts.key):
print(f"File {self.opts.key} already exists")
sys.exit(1)
print(f"Generating keys for {self.opts.name}...", file=sys.stderr)
self.set_phrase(twice=True)
input_data = self.gpg.gen_key_input(
key_type="RSA",