An open API service indexing awesome lists of open source software.

https://github.com/ory/encrypt-dir

A very simple cli helper that encrypts files in directories using AES-GCM (128bit)
https://github.com/ory/encrypt-dir

Last synced: about 1 year ago
JSON representation

A very simple cli helper that encrypts files in directories using AES-GCM (128bit)

Awesome Lists containing this project

README

          

# encrypt-dir

A very simple cli helper that encrypts files in directories using AES-GCM (128bit). Particularly suited for en-/decrypting
sensitive information in git repositories.

[![Join the chat at https://discord.gg/PAMQWkr](https://img.shields.io/badge/join-chat-00cc99.svg)](https://discord.gg/PAMQWkr)

## Installation

```
$ go get -u github.com/ory/encrypt-dir
$ encrypt-dir encrypt --key=JephkRhbfqzDHMAYUtHa6qcys4R4D48w some-directory-1 some-other-directory
```

## Usage

### Encrypt

```
$ ls some-directory-1
foo.txt
$ ls some-other-directory
bar.txt

$ encrypt-dir encrypt --key= some-directory-1 some-other-directory

$ ls some-directory-1
foo.txt foo.txt.secure
$ ls some-other-directory
bar.txt foo.txt.secure
```

### Decrypt

```
$ ls some-directory-1
foo.txt.secure
$ ls some-other-directory
bar.txt.secure

$ encrypt-dir decrypt --key= some-directory-1 some-other-directory

$ ls some-directory-1
foo.txt foo.txt.secure
$ ls some-other-directory
bar.txt foo.txt.secure
```