Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eneko/axx
- Owner: eneko
- License: apache-2.0
- Created: 2019-03-02T07:23:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T22:39:22.000Z (over 3 years ago)
- Last Synced: 2024-10-08T15:16:10.556Z (about 1 month ago)
- Topics: cli, command-line-tool, cryptography, encryption, swift, swiftpm
- Language: Swift
- Size: 37.1 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 lineUSAGE: 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 filesSee '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
```