About Encryption
1- Secure exchanges with OpenPGP

You can find my public key to encrypt files or mails before sending to me: on the Contact page.

If you don't understand why you should encrypt most of your administrative and professional messages, please refer to this link.
This paragraph is a summary of GnuPG commands, for convenient use. I mainly relied on this document to write it.
You may publish your public key on your website, in your email signature, or on this or thatserver.

     a- Keys management
Generate a pair of keys gpg --gen-key
Generate a revocation certificate gpg --gen-revoke
Edit the keys gpg --edit-key key-id (eg: 5E3EB81D)
(eg. sign someone's public key with my private key)
Add another User ID adduid
Switch primary User ID [n], then primary
Export public keys gpg --export -a
Export private keys gpg --export-secret-keys -a
Import keys gpg --import
Display keys fingerprint gpg --fingerprint
Erase a public key gpg --delete-key
Erase a private key gpg --delete-secret-key
List public keys gpg --list-keys
List private keys gpg --list-secret-keys
List signatures gpg --list-sigs

     b- Crypt and Sign
Produce a crypted message file gpg --encrypt -a your_message.txt > crypted_message.txt
(use the public key of the recipient, this insures that your message won't be read by someone else)
Produce a signature attachment file gpg --detach-sign -a your_message.txt > signature.txt
(use your private key and the crypted message content, this insures that your message is sent by you)
Produce a single compressed file including both gpg -u exp -r dest -a --sign --encrypt your_message.txt > signed_message.txt

     c- Check and Decrypt
Check a signature attachment file gpg --verify their_signature.txt their_message.txt
(use the public key of the sender and the crypted message content, this insures that your message has been sent by the signee)
Decrypt a crypted message file gpg --decrypt their_message.txt > message.txt
(use your private key, this insures that your message has not been read by someone else)
Check and decrypt at once a single compressed file gpg --decrypt their_message.txt > message.txt

     d- Symmetrically Encrypt/Decrypt
Encrypt a document gpg --encrypt --symmetric -a your_document.txt > crypted_document.txt
Decrypt a document gpg --decrypt --symmetric your_document.txt > document.txt
(use your private key for encrypt and decrypt, this insures that a document has been encrypted by you and can be decrypted only by you)
 [Menu]
Last Update
02/10/2023
46106 visitors
850589 robots
since 01/01/2003
Page generated
in 1.19 seconds
💗 2003-2024 by S. MARLIERE. Copying is an act of love. Love is not subject to law. Please copy and share.