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)
- Host: GitHub
- URL: https://github.com/ory/encrypt-dir
- Owner: ory
- License: apache-2.0
- Created: 2017-11-08T11:55:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-12T16:31:12.000Z (over 1 year ago)
- Last Synced: 2025-04-20T19:22:55.796Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 8.59 MB
- Stars: 15
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
[](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
```