Giter VIP home page Giter VIP logo

dotnet-ansible-vault-decoder's Introduction

dotnet-ansible-vault-decoder

This is dotnet global tool for decoding/encoding Ansible's vault data

Installation

Prerequires

install via nuget

  1. run dotnet tool install -g dotnet-ansible-vault-decoder
  2. add $HOME/.dotnet/tools to your PATH env value

Usage

you can execute by dotnet-anv [encode/decode] [options] command. here is the --help output;

dotnet-anv 0.1.0.0

Usage: ansible-vault-decoder [options] [command]

Options:
  --version     Show version information
  -?|-h|--help  Show help information

Commands:
  decode        
  encode        

Run 'ansible-vault-decoder [command] --help' for more information about a command.

encode

if you want to create ansible vault file, you can do it by dotnet-anv encode. here is dotnet-anv encode --help output;

Usage: ansible-vault-decoder encode [options]

Options:
  -i|--input     input data file(default stdin)
  -o|--output    output file path(default stdout)
  -e|--eol       output end of line(cr, crlf, lf, if not set, using system default value)
  -p|--password  encryption password, if not set, input via prompt
  --passfile     password file(using first line, trailing whitespace will be trimmed
  --passenv      get password from environment variable
  -l|--label     vault label
  -?|-h|--help   Show help information

Examples

  • basic usage: dotnet-anv encode -i plaindata.txt -o encrypted.yml -p password
  • input from stdin: echo abcde|dotnet-anv encode -o encrypted.yml -p password
  • output to stdout: dotnet-anv encode -i plaintdata.txt -p password
  • password by env: export ANV_PASS=password;dotnet-anv encode --passenv ANV_PASS -i plaindata.txt
  • password by file: dotnet-anv encode --passfile password.txt -i plaindata.txt

decode

if you want to decrypting ansible vault file, you can do it by dotnet-anv decode here is dotnet-anv decode --help output;

Usage: ansible-vault-decoder decode [options]

Options:
  -i|--input     input data file(default stdin)
  -o|--output    output file path(default stdout)
  -p|--password  encryption password, if not set, input via prompt
  --passfile     password file(using first line, trailing whitespace will be trimmed
  --passenv      get password from environment variable
  -?|-h|--help   Show help information

Examples

  • basic usage: dotnet-anv decode -i encrypted.yml -o plaindata.txt -p password

password

Password for encryption/decryption is specified by three ways

  1. pass by argument: using argument value, by -p [plaintext password], most simple way
  2. pass by environment variable: using environment value, by --passenv [environment name]
  3. pass by plaintext file: using text file value, by --passfile [path to password file]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.