You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/crypto.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,10 @@ bcrypt "myPassword"
49
49
50
50
## htpasswd
51
51
52
-
The `htpasswd` function takes a `username` and`password` and generates a `bcrypt` hash of the password. The result can be used for basic authentication on an [Apache HTTP Server](https://httpd.apache.org/docs/2.4/misc/password_encryptions.html#basic).
52
+
The `htpasswd` function takes a `username`, a`password`, and a `hashAlgorithm` and generates a `bcrypt`(recommended) or a base64 encoded and prefixed `sha`hash of the password. `hashAlgorithm` is optional and defaults to `bcrypt`. The result can be used for basic authentication on an [Apache HTTP Server](https://httpd.apache.org/docs/2.4/misc/password_encryptions.html#basic).
53
53
54
54
```
55
-
htpasswd "myUser" "myPassword"
55
+
htpasswd "myUser" "myPassword" ["bcrypt"|"sha"]
56
56
```
57
57
58
58
Note that it is insecure to store the password directly in the template.
0 commit comments