Swiftpack.co -  eneko/Axx as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Encrypt / decrypt files from the command line
.package(url: "https://github.com/eneko/Axx.git", from: "0.1.0")


Encrypt / decrypt files from the command line.

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

USAGE: axx <subcommand>

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

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

  See 'axx help <subcommand>' for detailed help.


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


With Homebrew

$ brew install eneko/tap/axx

From source

$ git clone https://github.com/eneko/Axx.git && cd Axx
$ make install


Stars: 3
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

4 weeks ago
  • Migrate to ArgumentParser
  • Add support for encrypting/decrypting with passphrase + salt

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