Giter Site home page Giter Site logo

gpg-public-key-archiver's Introduction

gpg-public-key-archiver

A small encryption project, to simplify managing files encryption with gpg.

It's purpose is to encrypt data by your public gpg key, and then archiving it to one file, without the need to decrypt it firstly with secret key.

Encrypting

Supposing you have some data in folder/ directory, and you public key with [email protected] idenity, You can simply do

zip -r folder.zip folder/
gpg -r [email protected] --encrypt folder.zip

to get 1 encrypted file folder.zip.gpg

But afterwards, there is no ability for you to decrypt it again, to add some extra file, for example.

So, assuming you have no access to your secret gpg key, this script creates a new folder, with previous folder.zip.gpg file, and your extra new_folder/ that you want to add.

result_folder/
   ├── folder.zip.gpg
   └── new_folder/

Gets to result_folder.zip.gpg

Decrypting

When you get your secret key in gpg keyring, it's time to get all files back.

Decrypting file goes the same, but in reverse order

gpg --decrypt result_folder.zip.gpg > result_folder.zip
unzip result_folder.zip

Finally, you get result_folder/

Motivation

So, that script automates such encrypting & decrypting commands

gpg-public-key-archiver's People

Contributors

tsepanx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.