705 B
705 B
GPG
Encrypt
gpg --full-generate-keygpg --export -a "thek4n" > public.key-a ASCIIgpg --fingerprint "thek4n"(send fingerprint IRL)gpg -seaR "john" -u "thek4n" file-s sign, -e asymmetric, -a ASCII, -R ciphered receiver, -u secret key
Decrypt
gpg --import public.keygpg --fingerprint "thek4n"(check fingerprint)gpg -d --try-secret-key "john" file.asc > res.txt
Sign message (one file)
enc: gpg -u "thek4n" --clear-sign -s file -u secret key, --clear-sign ascii
dec: gpg -d file.asc
Sign binary (file and sign)
enc: gpg -u "thek4n" -b file -b detached sign
dec: gpg --verify file.sig file