GPG

WebHome | UnixGeekTools | Geekfarm | About This Site

Gnu Privacy Guard.


gpg cookbook


    # generate new keys
    gpg --gen-key

    # export public key to binary
    gpg --output alice.gpg --export alice@cyb.org
    # export public key to ascii
    gpg --armor --export alice@cyb.org

    # import public key
    gpg --import blake.gpg

    # list keys
    gpg --list-keys

    # encryption
    gpg --output doc.gpg --encrypt --recipient blake@cyb.org doc
    gpg --output doc --decrypt doc.gpg

    # digital signatures
    gpg --output doc.sig --sign doc
    gpg --output doc --decrypt doc.sig
    # detached signature
    gpg --output doc.sig --detach-sig doc
    # verify using sig
    gpg --verify doc.sig doc




Updated Sun Jul 23, 2006 12:11 PM