1.1 KiB
1.1 KiB
gpg
GNU Privacy Guard. 더 많은 정보: https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html.
- GPG 공개 및 개인 키를 대화형으로 생성:
gpg {{[--full-gen-key|--full-generate-key]}}
- 암호화 없이
doc.txt에 서명 (doc.txt.asc에 출력을 기록):
gpg --clearsign {{doc.txt}}
- alice@example.com 및 bob@example.com에 대해
doc.txt를 암호화하고 서명 (doc.txt.gpg로 출력):
gpg {{[-es|--encrypt --sign]}} {{[-r|--recipient]}} {{alice@example.com}} {{[-r|--recipient]}} {{bob@example.com}} {{doc.txt}}
- 비밀번호 문구만으로
doc.txt를 암호화 (doc.txt.gpg로 출력):
gpg {{[-c|--symmetric]}} {{doc.txt}}
doc.txt.gpg복호화 (stdout으로 출력):
gpg {{[-d|--decrypt]}} {{doc.txt.gpg}}
- 공개 키 가져오기:
gpg --import {{public.gpg}}
- alice@example.com에 대한 공개 키 내보내기 (
stdout으로 출력):
gpg --export {{[-a|--armor]}} {{alice@example.com}}
- alice@example.com의 개인 키 내보내기 (
stdout으로 출력):
gpg --export-secret-keys {{[-a|--armor]}} {{alice@example.com}}