From ae807aab041a11dd644aab25adce993db75aa75c Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Tue, 3 Nov 2020 20:21:24 +0100 Subject: Document how to generate a working sha256sum (fixes #401) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3