2020-04-24 08:55:38 +02:00
|
|
|
# secret
|
|
|
|
|
|
|
|
Keep your little secrets, publicly.
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- Only one file to backup: `~/.secret`.
|
|
|
|
- No configuration: get back your file and you're done.
|
|
|
|
- URLs/logins/scopes are encrypted too.
|
|
|
|
- Secret agent that allows shell completion (only `bash` for now).
|
|
|
|
- Support many passwords (a visual hash might be required).
|
|
|
|
- Depends only on the [libhydrogen](https://libhydrogen.org/) library.
|
|
|
|
- Small, simple and non obfuscated C code.
|
|
|
|
|
|
|
|
## Build and install
|
|
|
|
|
|
|
|
$ make install prefix=/usr
|
|
|
|
|
2020-04-24 09:05:00 +02:00
|
|
|
Currently, bash completion is not installed. Download and source the file [argz.sh](argz/argz.sh) then:
|
|
|
|
|
|
|
|
$ complete -F _argz secret
|
|
|
|
|
2020-04-24 08:55:38 +02:00
|
|
|
## Commands
|
|
|
|
|
|
|
|
$ secret
|
|
|
|
Available commands:
|
2020-04-24 19:47:09 +02:00
|
|
|
init Init a secret storage for the user
|
|
|
|
list List all secrets for a given passphrase
|
2020-04-24 08:55:38 +02:00
|
|
|
add Add a new secret
|
2020-04-24 19:47:09 +02:00
|
|
|
show Show an existing secret
|
|
|
|
change Change an existing secret
|
|
|
|
agent Run a process in a trusted zone
|
2020-04-24 08:55:38 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Initialize secret:
|
|
|
|
|
|
|
|
$ secret init
|
|
|
|
|
|
|
|
Add a new generated secret called 'test':
|
|
|
|
|
|
|
|
$ secret add test
|
|
|
|
Password:
|
|
|
|
Secret [random]:
|
|
|
|
9{6u0ue>5&W2+z#OR:`X<@-#
|
|
|
|
|
|
|
|
Show secret 'test':
|
|
|
|
|
|
|
|
$ secret show test
|
|
|
|
Password:
|
|
|
|
9{6u0ue>5&W2+z#OR:`X<@-#
|
|
|
|
|
|
|
|
Start a secret zone:
|
|
|
|
|
|
|
|
$ secret agent bash
|
|
|
|
Password:
|
|
|
|
|
|
|
|
You can now manipulate your secrets easily and with completion:
|
|
|
|
|
|
|
|
$ ./secret show test
|
|
|
|
9{6u0ue>5&W2+z#OR:`X<@-#
|
|
|
|
|