mirror of
https://github.com/angt/secret
synced 2025-01-28 07:58:36 +01:00
Update README.md
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
2c48bddd70
commit
e88c9850ab
1 changed files with 24 additions and 2 deletions
26
README.md
26
README.md
|
@ -118,13 +118,35 @@ Add a new randomly generated secret:
|
||||||
|
|
||||||
$ secret new test
|
$ secret new test
|
||||||
Passphrase:
|
Passphrase:
|
||||||
^>f.8%]_zoN^jSi0CO_{(yYY5
|
No secrets stored with this passphrase.
|
||||||
|
Please, retype it to confirm:
|
||||||
|
/xK;{%@d~hPh.L'5-Sn{sBQd5
|
||||||
|
|
||||||
Show the secret:
|
Show the secret:
|
||||||
|
|
||||||
$ secret show test
|
$ secret show test
|
||||||
Passphrase:
|
Passphrase:
|
||||||
^>f.8%]_zoN^jSi0CO_{(yYY5
|
/xK;{%@d~hPh.L'5-Sn{sBQd5
|
||||||
|
|
||||||
|
Rename a secret, press ENTER to not change it:
|
||||||
|
|
||||||
|
$ secret update test test2
|
||||||
|
Passphrase:
|
||||||
|
Secret:
|
||||||
|
|
||||||
|
$ secret show test2
|
||||||
|
Passphrase:
|
||||||
|
/xK;{%@d~hPh.L'5-Sn{sBQd5
|
||||||
|
|
||||||
|
Pipe a secret:
|
||||||
|
|
||||||
|
$ secret show test2 | tr -cd [a-z] | secret update test2
|
||||||
|
Passphrase:
|
||||||
|
Passphrase:
|
||||||
|
|
||||||
|
$ secret show test2
|
||||||
|
Passphrase:
|
||||||
|
xdhhnsd
|
||||||
|
|
||||||
Derive a deterministic (a.k.a. unstored) secret:
|
Derive a deterministic (a.k.a. unstored) secret:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue