summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-29 17:42:38 +0100
committermh <mh@immerda.ch>2012-12-29 17:42:38 +0100
commitadf8ab5c90fbb5579d231b81a20fe87b33c36f0a (patch)
tree12dff928bc11f3501585274cfe131f7c9d041b0b /README.md
parent8aff193682579cdf9504a17e3d65ae91316833a6 (diff)
improve README, get rid off obsolete --pwd-from-stdin
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7d44bcd..97a81c7 100644
--- a/README.md
+++ b/README.md
@@ -78,15 +78,24 @@ far.
This will ask you for a password and set it under the appropriate key/format.
- trocla set --pwd-from-stdin user4 plain mysupersecretpassword
+ trocla set --password mysupersecretpassword user4 plain
This will take the password from the cli without asking you.
- trocla set --pwd-from-stdin user5 mysql *ABC....
+ trocla set user5 mysql -p *ABC....
This will store a mysql sha1 hash for the key user5, without storing any kind
of plain text password.
+You can also pipe in a password:
+
+ echo -n foo | trocla set user6 plain -p
+
+or a file
+
+ cat some_file | trocla set user6 plain -p
+ trocla set user6 plain -p < some_file
+
### reset
trocla reset user1 md5crypt