Skip to content

Commit

Permalink
[DOCS] Update hash-password example with single quotes (#1537)
Browse files Browse the repository at this point in the history
* [Doc] Single quote the hash-password input

Closes #1536

* Update docs/configuration/authentication/file.md

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
  • Loading branch information
bbros-dev and nightah committed Dec 16, 2020
1 parent 86c4577 commit a7968bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/configuration/authentication/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7968bc

Please sign in to comment.