From a7968bc77b75fdd5020e32b6033f6141221b3775 Mon Sep 17 00:00:00 2001 From: "Begley Brothers (Development)" <60454087+bbros-dev@users.noreply.github.com> Date: Wed, 16 Dec 2020 11:07:51 +1100 Subject: [PATCH] [DOCS] Update hash-password example with single quotes (#1537) * [Doc] Single quote the hash-password input Closes #1536 * Update docs/configuration/authentication/file.md Co-authored-by: Amir Zarrinkafsh --- docs/configuration/authentication/file.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/configuration/authentication/file.md b/docs/configuration/authentication/file.md index 801eb10b..a0225964 100644 --- a/docs/configuration/authentication/file.md +++ b/docs/configuration/authentication/file.md @@ -90,9 +90,10 @@ you could generate a 16 byte salt and provide it with the `--salt` flag. Example: `authelia hash-password --salt abcdefghijklhijl`. For argon2id the salt must always be valid for base64 decoding (characters a through z, A through Z, 0 through 9, and +/). +Passwords passed to `hash-password` should be single quoted if using special characters to prevent parameter substitution. For instance to generate a hash with the docker image just run: - $ docker run authelia/authelia:latest authelia hash-password yourpassword + $ docker run authelia/authelia:latest authelia hash-password 'yourpassword' Password hash: $argon2id$v=19$m=65536$3oc26byQuSkQqksq$zM1QiTvVPrMfV6BVLs2t4gM+af5IN7euO0VB6+Q8ZFs Full CLI Help Documentation: