Giter Site home page Giter Site logo

autoencryptage's Introduction

AutoEncryptAge

Watch for files in input directory, encrypt them by age and move to output directory.

This is simple self contained CLI application that runs on Windows, Linux and other .net core targets. It has no dependencies other than .net core (.net 6) and System.CommandLine for parsing args. The code is very simple, just one file, all the heavy lifting is done by age.

Usage:
  AutoEncryptAge [options]

Options:
  --init-dir <init-dir>                By default this is current directory where you started the app. You can provide absolute path. [default: ]
  --input-dir <input-dir>              Directory to watch for files to encrypt. Default is "init-dir/2encrypt", but you can also specify absolute path. [default: ]
  --output-dir <output-dir>            Encrypted files are moved here. Default is initDir/encypted. When ecrypting from input dir, relative subdirectory structure is preserved. Filenames have .age extenion (original extension is kept) [default: ]
  --pubkeys <pubkeys>                  File with age pubkeys, is used as -R arg with age. [default: ]
  --age-binary-path <age-binary-path>  Where to look for age binary. Will be downloaded if necessery. [default: ]
  --delete-files-after-encryption      Default is true. [default: True]
  --delete-dirs-after-encryption       Default is true. [default: True]
  --version                            Show version information
  -?, -h, --help                       Show help and usage information

When you run it without arguments, it will create this folder sructure in the current directory, download age if necessery and generate new key pair for encryption.

image

And will start watching the input-dir ("2encrypt" by default) folder. When you put any file in it, it will ecnrypt it with all pubkeys in pubkeys and move it to output-dir ("encrypted" by default) folder.

If everything already exists, it will just start watching the input directory. You can keep it running (watching) or just run it once and it will encrypt whatever is waiting in input-dir.

autoencryptage's People

Contributors

urza avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jeffward01

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.