Swiftpack.co - eneko/Axx as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by eneko.
eneko/Axx 0.1.0
Encrypt / decrypt files from the command line
⭐️ 5
🕓 2 years ago
.package(url: "https://github.com/eneko/Axx.git", from: "0.1.0")

axx

Encrypt / decrypt files from the command line.

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

USAGE: axx <subcommand>

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 <subcommand>' 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

GitHub

link
Stars: 5
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 years ago
  • Migrate to ArgumentParser
  • Add support for encrypting/decrypting with passphrase + salt

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics