Giter Site home page Giter Site logo

lorenzodisidoro / avocado-cli Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 51 KB

๐Ÿฅ‘ Avocado is a small surface command line interface to use Avocado SDK, it can be used to encrypt your secrets with RSA key

License: MIT License

Go 85.38% Shell 14.62%
password-manager rsa-key surface-command password golang golang-tools

avocado-cli's Introduction

Go Report Card Build Status

Avocado CLI

Avocado is a small surface command line interface to use Avocado SDK, it can be used to manage your passwords with RSA key.

Supported OS

  • OSX
  • Linux

Installation

Generate your RSA key pair (e.g. using ssh-keygen tool) and run the following command to install Avocado CLI

curl https://raw.githubusercontent.com/lorenzodisidoro/avocado-cli/master/scripts/install_cli.sh | bash

or specify the version tag of the CLI

curl https://raw.githubusercontent.com/lorenzodisidoro/avocado-cli/master/scripts/install_cli.sh | bash -s VERSION_TAG

After that try to run the following command

$ avocado

Getting Started

Configuration

Before using Avocado CLI, you need to generate an RSA private key, for example running:

openssl genrsa -out private_key.pem

After that inizialize the CLI configuration file config.json, running the following command

avocado init </PATH/TO/PRIVATE_KEY.pem>

The CLI creates and reads this file in $HOME/.avocado/ directory.

How to use

Encrypt

A new value can be encrypted and stored using the following command

avocado encrypt <KEY>

Get

Print the stored elements

avocado get

Decrypt

Stored values can be decrypted using the following command

avocado decrypt <KEY> </PATH/TO/PRIVATE_KEY.pem>

decrypted value is written in to the clipboard.

Delete

Remove element by key

avocado delete <KEY>

For Developers

Clone this repository into your $GOPATH using

git clone https://github.com/lorenzodisidoro/avocado-cli

moved to the project folder install dependencie with

go mod tidy

The application can be used running

go run main.go [command]

or create a build and use it

./scripts/build.sh <GOOS> <GOARCH>

You can build this applications for different Operating Systems and architectures (To find this list of possible platforms, run the following: go tool dist list)

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.