This tool is a command-line client for aha-secret. Currently it allows to create secrets only.
$ cargo build --releaseThe binary file should be in target/release/ahasecret.
Encrypt:
$ echo "hello world" | target/release/ahasecret --url https://URL.TO.AHA.SECRETInstead 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/ahasecretDecrypt:
$ 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$ 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
GPL v3.0
Wolfgang Hotwagner