Skip to content

semantic-agency/secret-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shhh-cli

What is it?

shhh-cli is a Command Line Interface tool to interact with Shhh web-application API.
This tool allows you to create and read secrets directly from the command line / terminal.

shhh-cli

How to tell shhh-cli to generate secrets to your own Shhh server?

shhh-cli interacts by default with the official Shhh server (shhh-encrypt.com). If you host Shhh on your own server, you can set-up an env variable SHHH_SERVER. It will know interact with your server as default.

# Example (in you bashrc)
export SHHH_SERVER=https://shhh-encrypt.herokuapp.com

How to install it?

If you are a Go user:

go get -u github.com/smallwat3r/shhh-cli \
    && mv $GOPATH/bin/shhh-cli $GOPATH/bin/shhh

Or
shhh-cli has no runtime dependencies. Download a binary for your platform here.

How to use it?

$ shhh -h
Create or read secrets from a Shhh server.

Usage:
  shhh <command> [<args>]

Options:
  -h         Show help message.

Modes:
  create     Creates a secret message.
  read       Read a secret message.

Usage of create:
  -h         Show help message.
  -m string  Secret message to encrypt.
  -p string  Passphrase to encrypt secret.
  -d int     Optional, number of days to keep the secret alive. (default 3).

Usage of read:
  -h         Show help message.
  -l string  URL link to access secret.
  -p string  Passphrase to decrypt secret.

Examples:
  shhh create -m "this is a secret msg." -p SuperPassphrase123 -d 2
  shhh read -l https://shhh-encrypt.com/api/r/jKD8Uy0A9_51c8asqAYL -p SuperPassphrase123

Packages

No packages published

Languages

  • Go 100.0%