Skip to content

Commit eae285c

Browse files
authoredJan 14, 2021
Improve hashed-password FAQ (#2533)
1 parent 39facee commit eae285c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎doc/FAQ.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,20 @@ Again, please follow [./guide.md](./guide.md) for our recommendations on setting
164164

165165
## Can I store my password hashed?
166166

167-
Yes you can! Use `hashed-password` instead of `password`. Generate the hash with:
167+
Yes you can! Set the value of `hashed-password` instead of `password`. Generate the hash with:
168168

169169
```
170-
echo "thisismypassword" | sha256sum | cut -d' ' -f1
170+
printf "thisismypassword" | sha256sum | cut -d' ' -f1
171171
```
172172

173-
Of course replace `"thisismypassword"` with your actual password.
173+
Of course replace `thisismypassword` with your actual password.
174+
175+
Example:
176+
177+
```yaml
178+
auth: password
179+
hashed-password: 1da9133ab9dbd11d2937ec8d312e1e2569857059e73cc72df92e670928983ab5 # You got this from the command above
180+
```
174181
175182
## How do I securely access web services?
176183

0 commit comments

Comments
 (0)