aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2020-11-03 19:21:24 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2020-11-03 19:21:24 +0000
commitae807aab041a11dd644aab25adce993db75aa75c (patch)
tree1d20b04f30837a66d805a396adfa5ff6b82db0fb
parentBump deps (diff)
downloadminiserve-ae807aab041a11dd644aab25adce993db75aa75c.tar.gz
miniserve-ae807aab041a11dd644aab25adce993db75aa75c.zip
Document how to generate a working sha256sum (fixes #401)
-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