Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions versioned_docs/version-3/chart_template_guide/function_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -1014,15 +1014,25 @@ adler32sum "Hello world!"

### htpasswd

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).
The `htpasswd` function takes a `username` and `password` and generates a 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).

```
htpasswd "myUser" "myPassword"
```

By default, `htpasswd` uses the bcrypt algorithm. You can specify a different
hashing algorithm with an optional third argument:

- `"bcrypt"`: Use bcrypt hashing (default)
- `"sha"`: Use SHA hashing

```
htpasswd "myUser" "myPassword" "sha"
htpasswd "myUser" "myPassword" "bcrypt"
```

Note that it is insecure to store the password directly in the template.

### randBytes
Expand Down
Loading