Use GnuPG to protect your backup data

Source: Internet
Author: User
Tags gnupg

On the one hand, I covet the huge storage space and upload speed of various major cloud storage in China, and on the other hand, I am afraid of the operation of various cloud storage in China. What should I do? You can use GnuPG encryption to protect your backup data.

GnuPG is a powerful open-source encryption software. It can be used in many ways around its public and private keys. for example, if your friend has imported your public key, you can use your public key to encrypt the information when sending it to you. After encryption, this information is theoretically unlocked only by your private key. alternatively, you can use GnuPG and Emacs's Org-Mode to encrypt specified content in your Org article, such as the password written in your Org file.

Here we will only introduce how to encrypt a single file. For more information, see the connection below.

Note: All your keys exist ~ /. In gnupg/, although it cannot be directly obtained after processing, it can still be tampered with under attacks from other software. this is the weakness of the whole gpg. Be sure to protect this folder.

    Wikipedia GnuPG Gnu Privacy Guard (GnuPG) pocket HOWTO (Chinese version) uses GnuPG to encrypt your Org-Mode article

    OS X Install GnuPG
    Brew install gpg

    Generate your own key
    Gpg -- gen-key

    Export Public Key
    Gpg -- armor -- output filename -- export [UID]

    Import Public Key
    Gpg -- import filename

    View existing keys
    Gpg -- list-keys

    Encrypted backup
    Gpg-ea-r [UID] filename.tar.gz

    Decrypt backup
    Gpg-o filename.tar.gz-d filename.tar.gz. asc

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.