A lightweight CLI for secure post-quantum file encryption and signing.
Project details
Post-Quantum Privacy Guard offers a modern, memory-safe CLI solution for hybrid post-quantum encryption, signing, and key management. It features air-gapped QR code support, ensuring secure data transfer without external dependencies. Built entirely in Rust, it's portable and suitable for various platforms, providing peace of mind in an uncertain future.
pqpg (Post-Quantum Privacy Guard) is a modern, universal, and standalone command-line interface (CLI) for robust file encryption, digital signatures, and key management, built entirely in pure Rust. This tool features hybrid post-quantum encryption, ensuring a high level of security and privacy with native support for air-gapped QR code data transfer, right from the terminal.
-----BEGIN PQPG ...-----) and compact binary formats for ease of use.# Generate identity.key (0600) and identity.pub
pqpg keygen -n identity
# Generate QR Code for air-gapped systems
pqpg keygen -n identity --qr
# Encrypt a file for a specific recipient
pqpg encrypt -r alice.pub segreto.txt -o segreto.msg
# Encrypt from stdin, displaying a QR code
echo "Messaggio riservato" | pqpg encrypt -r alice.pub --qr
# Decrypt a message using the private key
pqpg decrypt -s identity.key segreto.msg
# Decrypt from pipe
cat segreto.msg | pqpg decrypt -s identity.key
# Sign a document
pqpg sign -s identity.key documento.pdf -o documento.sig
# Sign with QR Code display
pqpg sign -s identity.key documento.pdf --qr
# Verify the signature
pqpg verify -k alice.pub -s documento.sig documento.pdf
# Display a QR code for any key or message
pqpg qr chiave_o_messaggio.txt
pqpg provides a secure and efficient solution for file encryption and key management, paving the way towards enhanced post-quantum security.
Comments
0Start the conversation
Share the first comment.