KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
gpg-pysuite
★ 10
Open GitHub ↗
Python GPG suite
Download README (.md)
Explore Similar Repositories
LinkSimplifier
:
一款轻量、高效的云盘直链解析工具,支持解析QQ邮箱文件中转站和蓝奏云的直链并下载到本地。提供基于 C# WPF 的桌面客户端和基于 Cloudflare Workers & Pages 的 Web 版本。
skill-tree-backend
:
No description available.
laravel-on-vercel
:
No description available.
ilo-sona
:
Small language model for toki pona.
CNVD_Modify
:
适用于CNVD的篡改猴(Tampermonkey、Greasemonkey)脚本
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
gpg-pysuite
?
Download (.md)
# GPG Python Suite In this repository we have a tool that use `python-gnupg`, **GPG Python Suite** doesn't import the **GPG keys** in the machine, the keys that you can generate are going to be exported in `.asc` files on the current directory. - [GPG Python Suite](#gpg-python-suite) - [Download and Install](#download-and-install) - [Usage](#usage) - [Generate keys](#generate-keys) - [Encrypt messages](#encrypt-messages) - [Decrypt messages](#decrypt-messages) - [Signing messages](#signing-messages) - [Verify signatures](#verify-signatures) ## Download and Install ```bash git clone https://github.com/marcvspt/gpg-pysuite cd gpg-pysuite/ pip3 install -r requirements.txt ``` ## Usage ```bash $ python3 gpg_pysuite.py -h usage: gpg_pysuite.py [-h] {generate,encrypt,decrypt,sign,verify} GnuPG Python suite positional arguments: {generate,encrypt,decrypt,sign,verify} options: -h, --help show this help message and exit ``` ### Generate keys ```bash $ python3 gpg_pysuite.py generate -h usage: gpg_pysuite.py generate [-h] -p PASSPHRASE -n NAME -e EMAIL [-b BASE_NAME] [--bits BITS] Generate GPG key pair RSA options: -h, --help show this help message and exit -p PASSPHRASE, --passphrase PASSPHRASE Password for the private key -n NAME, --name NAME User name -e EMAIL, --email EMAIL User e-mail -b BASE_NAME, --base-name BASE_NAME Base name for the keys --bits BITS Key length in bits ``` ### Encrypt messages The tool can encrypt the messages with the **public key** (Asymmetric) and **private key** (Symmetric). ```bash $ python3 gpg_pysuite.py encrypt -h Encrypt message with GPG options: -h, --help show this help message and exit -k GPG_KEY, --gpg-key GPG_KEY Path to GPG public key (Asymmetric) or private key (Symmetric) -m MESSAGE, --message MESSAGE Message to encrypt -o OUTFILE, --outfile OUTFILE Path to save the GPG message encrypted ``` ### Decrypt messages ```bash $ python3 gpg_pysuite.py decrypt -h Decrypt GPG encrypted message options: -h, --help show this help message and exit -k PRIV_KEY, --private-key PRIV_KEY Path to GPG private key -p PASSPHRASE, --passphrase PASSPHRASE GPG private key password -m MESSAGE, --message-file MESSAGE Path to GPG message encrypted -o OUTFILE, --outfile OUTFILE Path to save the message decrypted ``` ### Signing messages ```bash $ python3 gpg_pysuite.py sign -h usage: gpg_pysuite.py sign [-h] -c PUBKEY -k PRIVKEY -p PASSPHRASE -m MESSAGE [-o OUTFILE] Sign message with GPG options: -h, --help show this help message and exit -k PRIV_KEY, --private-key PRIV_KEY Path to GPG private key -p PASSPHRASE, --passphrase PASSPHRASE GPG Private Key password -m MESSAGE, --message MESSAGE Message to sign -o OUTFILE, --outfile OUTFILE Path to save the GPG sessage signed ``` ### Verify signatures The tool can verify the signatures with the **public key**. ```bash $ python3 gpg_pysuite.py verify -h Verify signature with GPG options: -h, --help show this help message and exit -c PUB_KEY, --public-key PUB_KEY Path to GPG public key -m MESSAGE, --signed-message MESSAGE Path to signed message ```