aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5e9712f..1985a52 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,11 @@ Sometimes this is just a more practical and quick way than doing things properly
miniserve --auth joe:123 unreleased-linux-distros/
+### Require username/password as hash:
+
+ pw=$(echo -n "123" | sha256sum | cut -f 1 -d ' ')
+ miniserve --auth joe:sha256:$pw unreleased-linux-distros/
+
### Generate random 6-hexdigit URL:
miniserve -i 192.168.0.1 --random-route /tmp