GPG
- Key pair creation
$ gpg --full-gen-key
- List keys
$ gpg --list-keys
- List own keys
$ gpg --list-secret-keys $ gpg -K
- Import/export key into binary :
# Import $ gpg --import <file> # Export $ gpg --export <id> --output <file>
- Import/export key into ASCII :
# Import $ gpg -a --import <fichier> # Export $ gpg -a --export <identifiant> --output <fichier>
- Cipher file
$ gpg [--ouput <output>] --encrypt -r <id> <input file>
- Uncipher
$ gpg --decrypt -r <id> <file>
- Sign file
$ gpg --sign <file>