fix help
This commit is contained in:
9
Bakefile
9
Bakefile
@@ -43,3 +43,12 @@ test_decrypt() {
|
|||||||
GPGPASS=secret @ qgpg --key key2 -r d datadir
|
GPGPASS=secret @ qgpg --key key2 -r d datadir
|
||||||
@ hash-update -t sha1 -f sha1sum.txt -c
|
@ 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
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ Usage
|
|||||||
=====
|
=====
|
||||||
|
|
||||||
- Generate keys:
|
- 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
|
- This will create private and public keys, mykey and mykey.pub
|
||||||
- Share the public key to someone who will encrypt data to you
|
- Share the public key to someone who will encrypt data to you
|
||||||
- Encrypt file:
|
- Encrypt file:
|
||||||
@@ -118,7 +118,7 @@ Usage
|
|||||||
- Decrypt all files with the private key:
|
- Decrypt all files with the private key:
|
||||||
qgpg --key ./mykey -r decrypt ./encrypted_folder/
|
qgpg --key ./mykey -r decrypt ./encrypted_folder/
|
||||||
- Using passhprase in a variable:
|
- 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):
|
if os.path.exists(self.opts.key):
|
||||||
print(f"File {self.opts.key} already exists")
|
print(f"File {self.opts.key} already exists")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
print(f"Generating keys for {self.opts.name}...", file=sys.stderr)
|
||||||
self.set_phrase(twice=True)
|
self.set_phrase(twice=True)
|
||||||
input_data = self.gpg.gen_key_input(
|
input_data = self.gpg.gen_key_input(
|
||||||
key_type="RSA",
|
key_type="RSA",
|
||||||
|
|||||||
Reference in New Issue
Block a user