sudo apt-get install gnupg |
path %path%;C:\cygwin\bin |
gpg --help |
gpg --gen-key |
Please select what kind of key you want: (1) RSA and RSA (default) (2) DSA and Elgamal (3) DSA (sign only) (4) RSA (sign only) Your selection? |
Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) |
You need a user ID to identify your key; the software constructs the user ID from the Real Name, Comment and Email Address in this form: "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>" |
Real name: MadRocketSci Email address: ams@amssolarempire.com Comment: Secretagentmaaaan |
gpg --list-keys |
/home/Aaron/.gnupg/pubring.gpg ------------------------------ pub 4096R/2CF7B79B 2013-08-04 uid MadRocketSci (Secretagentmaaaan) <ams@amssolarempire.com> sub 4096R/876A27F2 2013-08-04 |
gpg --list-secret-keys |
/home/Aaron/.gnupg/secring.gpg ------------------------------ sec 4096R/2CF7B79B 2013-08-04 uid MadRocketSci (Secretagentmaaaan) <ams@amssolarempire.com> ssb 4096R/876A27F2 2013-08-04 |
gpg --export --armor "Keyname" > keyname.key |
gpg --export --armor "MadRocketSci" > madrocketsci.pubkey |
cat madrocketsci.pubkey |
gpg --export-secret-key -a "User Name" > private.key |
gpg --export-secret-key -a "MadRocketSci" > madrocketsci.privatekey |
gpg --import public.key |
gpg --allow-secret-key-import --import private.key |
gpg -r Alice -o totallyinnocent.blob -e secretsquirrel.zip |
gpg -r MadRocketSci -o totallyinnocent.blob -e secretsquirrel.zip |
gpg -u MadRocketSci -o secretsquirrel2.zip -d totallyinnocent.blob |
This message is totally secret: Evil Eve has absolutely no business with what follows. (whisperwhisperwhisper,blablabla) |
gpg -a -r Alice -o secretsquirrel.cipher.txt -e secretsquirrel.txt |
gpg -a -r MadRocketSci -o secretsquirrel.cipher.txt -e secretsquirrel.txt |
-----BEGIN PGP MESSAGE----- Version: GnuPG v1.4.13 (Cygwin) hQIMA/SSveuHaifyAQ//eezAB/mFe8CTELqFvIjvcB05szK89ZXd0VUslFkTic2I hMjb0cSJYkDRqBUJBx4FD08KnAnmcTm8PVR+SNp0aiV+6li88auftUg6gq1k1SQ4 ufMBXBWV2jcpyfXqRpvneR7UwZmCBd6yAVoYHDFgxL+AIAMMMhnxtZMToPl2grt0 zYFrtJ7qY4G6pYwe4Q9Cmn3XQVoMqFzdoCJRmxPKoNqiGByWrfrLAwIR+I4LIYqJ EGy2Wjv6A4rNXPH3143yfyYq1MtMiI6XhvJKxky41g0x54NC7ul8Wzx40vX2r1TL Yu7zbxs2kj4fOKp4PlWApr4V6SO/EsJcIjH3cSVinNfLXSMQ0hG8npDrP0/AjSzB FEzJ9lsvXtSfSG0Fj6g0L7Xg6qMf8kBvOmK6MnN/x1aSRLD7EC/Tc+nQeta7TydH Xw95nBOmWll9ruUXxIdYWjeea2+9IWHIL/gDaHLhBxCTPdoAN3UqGqqJheg8hiLt l3Y6Yhk3WA6FdXE1Y0mG3OTZEAUUzClmxun/8JFCH5uWuaHVxHdaouvdMx7K9U7S Njh/s4Jjww2be4e+CxaIV+1TZ6N+kau3CG6I2Dm44CEGiGTWhUbNcAHDOB6XSK70 +fRAOgi1ws0iw+qlPvM08ZSic2YoBO8zk571QXxkbmOFjHymYF7URyzR4aZ485PS rQF8mTddzuokF5LyILZMWGIi4wz1XJ8Ut3A0JlQubdWpUZ8nGJR6vljqaRcTb2wH 7LwmivYVBT5RDzyRCXmM2Eha4ErKzcS/xw/xUXXPEhtrOwzdVWTbKFhHJz5INKxf hIODID67VRFo9pAT4SH3E4Uz1SuUPWaNfIxTbzIwolswXDx7lJeh4RoKVd0kyF9F Oh+HLk957dxM1OCVYnA5T/oD6S79Ym88x44pv72O =DdwB -----END PGP MESSAGE----- |
gpg -u MadRocketSci -o secretsquirrel2.txt -d secretsquirrel.cipher.txt |
gpg -u MadRocketSci -d secretsquirrel.cipher.txt > secretsquirrel2.txt |
This message is totally secret: Evil Eve has absolutely no business with what follows. (whisperwhisperwhisper,blablabla) |
-----BEGIN PGP PUBLIC KEY BLOCK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