Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eneko/axx

Encrypt / decrypt files from the command line
https://github.com/eneko/axx

cli command-line-tool cryptography encryption swift swiftpm

Last synced: 18 days ago
JSON representation

Encrypt / decrypt files from the command line

Awesome Lists containing this project

README

        

# axx

Encrypt / decrypt files from the command line.

![](https://cdn-images-1.medium.com/max/1600/1*xaPn6yEq6H_3TNc7ZZkDew.png)

```
$ axx
OVERVIEW: Easily encrypt/decrypt files from the command line

USAGE: axx

OPTIONS:
--version Show the version.
-h, --help Show help information.

SUBCOMMANDS:
k Generate an encryption key
e Encrypt one or more files
d Decrypt one or more files

See 'axx help ' for detailed help.
```

## Usage

### Key Generation

With Axx is very easy to generate AES 256 encryption keys.
```
$ axx k > ~/.mykey.pem
```

⚠️ Keys must be kept safe and secure. Without the key, it would be impossible to recover an encrypted file.

### File Encryption

Axx supports file encryption with key, passphrase, or passphrase + salt.

With key:
```
$ axx e -i ~/.mykey.pem secretstuff.txt
```

With passphrase:
```
$ axx e -p pass secretstuff.txt
```

With passphrase and salt:
```
$ axx e -p pass -s sugar secretstuff.txt
```

### File Decryption

Axx supports file decryption with key, passphrase, or passphrase + salt.

With key:
```
$ axx d -i ~/.mykey.pem secretstuff.txt.enc
```

With passphrase:
```
$ axx d -p pass secretstuff.txt.enc
```

With passphrase and salt:
```
$ axx d -p pass -s sugar secretstuff.txt.enc
```

## Installation

### With Homebrew
```
$ brew install eneko/tap/axx
```

### From source
```
$ git clone https://github.com/eneko/Axx.git && cd Axx
$ make install
```