Ansible Vault Command v1.0

Introduction

This is a command line (aka console) based tool for decrypting Ansible vault files. You can either pipe the encrypted vault file in via the standard input stream or pass it the name of a file with --infile. You will of course also need to provide the password (i.e. key) to unlock the vault with the --password switch. Similarly the output goes to the standard output by default or you can specify the name of a file to write to with --outfile.

Example: Piping Data In & Out

By default the program reads and writes to the standard inout and output streams so you need only provide the password.

> type ciphertext.txt | AnsVaultCmd.exe --password password
TEST

Example: Reading & Writing Files

Alternatively you can replace either stream with a filename and redirect the input or output there instead (instead of using the shel to do the redirection). You can use the --infile and --outfile switches independently so that you can mix-and-match the source and destination

> AnsVaultCmd.exe --infile ciphertext.txt --password password --outfile "%TEMP%\plaintext.txt"
> type "%TEMP%\plaintext.txt"
TEST

License & Warranty

This application is freeware - you get what you pay for, nothing more, nothing less.

Source Code

The full source code (C#) is available from my web site listed below.

Contact Details

Using the --version switch will also display my contact details. Please check the web site for updates.

Email: gort@cix.co.uk
Web: www.chrisoldwood.com

Chris Oldwood
24th November 2018