Skip to content

aha-oida/ahasecret-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The AHA-Secret Command-Line Client

This tool is a command-line client for aha-secret. Currently it allows to create secrets only.

Build

$ cargo build --release

The binary file should be in target/release/ahasecret.

Usage

Encrypt:

$ echo "hello world" | target/release/ahasecret --url https://URL.TO.AHA.SECRET

Instead of passing --url via command line parameter it is also possible to set an environment variable AHA_URL:

$ export AHA_URL=https://URL.TO.AHA.SECRET
$ echo "hello world" | target/release/ahasecret

Decrypt:

$ target/release/ahasecret -d --url "https://URL.TO.AHA.SECRET/bins/UG2iBBJ9ZaL4rKUJ5U6JpUuJ#2D0isKulzThyZN2JvlDUd3Hmj6+j3uqdrfNRMF1uzmQ=&FX0Rb1580s7MNvMx"

If there is no "--url" parameter for decryption, ahasecret will read possible urls from stdin:

$ echo "hello world" | target/release/ahasecret --url https://URL.TO.AHA.SECRET | target/release/ahasecret -d -f

Parameters

$ ahasecret -h 
Usage: ahasecret [OPTIONS] --url <URL>

Options:
  -u, --url <URL>              The url to aha-secret
  -r, --retention <RETENTION>  Retention time to keep the secret [default: 7d]
  -v, --verbose                Verbose output
  -d, --decrypt                Decrypt using a URL
  -f, --force                  Force and do not ask questions
  -h, --help                   Print help
  -V, --version                Print version 

License

GPL v3.0

Autor

Wolfgang Hotwagner

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages