Tag:gpg

Tag (gpg)'s result:

gpg usage

pgp:商业加密软件 gpg:自由免费加密软件 用户ID:邮件地址或者hash 生成/列举密钥 gpg –gen-key gpg –list-keys –list-secret-keys 删除密钥 gpg –delete-key [用户ID] gpg –delete-secret-keys 71FBED38 导出公钥 gpg –armor –output public-key.txt –export [用户ID] gpg –armor –output private-key.txt –export-secret-keys gpg –output ./tor.keyring –export 0xEFxxx 上传公钥 gpg –send-keys [用户ID] –keyserver hkp://subkeys.pgp.net gpg –fingerprint [用户ID] gpg –fingerprint 42xxxxxxxxxxxxxx / gpg –keyserver hkp://subkeys.pgp.net –send-keys [用户ID] 导入密钥 gpg –import [密钥文件] gpg –keyserver hkp://subkeys.pgp.net –search-keys [用户ID] gpg –keyserver hkp://keys.gnupg.net –recv-keys 13xxx 加密 gpg –recipient [用户ID] –output demo.en.txt –encrypt demo.txt / gpg -o encrypted_520.haha –encrypt -r 49xxxxxx haha   解密 gpg –decrypt demo.en.txt –output demo.de.txt / gpg demo.en.txt 签名 gpg –sign demo.txt 默认采用二进制储存 ASCII码签名 gpg –clearsign demo.txt gpg –detach-sign demo.txt gpg –armor –detach-sign demo.txt 加密+签名 gpg –local-user [发信者ID] –recipient [接收者ID] –armor –sign –encrypt demo.txt 验证签名 gpg –verify demo.txt.asc demo.txt gpg –verify gpg4win-3.1.11.tar.bz2.sig gpg4win-3.1.11.tar.bz2 gpgv –keyring ~/tor.keyring tor-browser-9.0.7-android-x86_64-multi.apk.asc tor-browser-9.0.7-android-x86_64-multi.apk MISC os.system(“cd %s && echo password | gpg –batch –passphrase-fd 0 –recipient Name –decrypt a.en > a.txt”)