50 lines
1.4 KiB
Markdown
50 lines
1.4 KiB
Markdown
|
---
|
||
|
title: "authelia-scripts hash-password"
|
||
|
description: "Reference for the authelia-scripts hash-password command."
|
||
|
lead: ""
|
||
|
date: 2022-05-31T11:13:56+10:00
|
||
|
lastmod: 2022-06-03T11:17:29+10:00
|
||
|
draft: false
|
||
|
images: []
|
||
|
menu:
|
||
|
reference:
|
||
|
parent: "cli-authelia-scripts"
|
||
|
weight: 330
|
||
|
toc: true
|
||
|
---
|
||
|
|
||
|
## authelia-scripts hash-password
|
||
|
|
||
|
Hash a password to be used in file-based users database. Default algorithm is argon2id.
|
||
|
|
||
|
```
|
||
|
authelia-scripts hash-password [flags] -- <password>
|
||
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
```
|
||
|
-c, --config strings Configuration files
|
||
|
-h, --help help for hash-password
|
||
|
-i, --iterations int set the number of hashing iterations (default 3)
|
||
|
-k, --key-length int [argon2id] set the key length param (default 32)
|
||
|
-m, --memory int [argon2id] set the amount of memory param (in MB) (default 64)
|
||
|
-p, --parallelism int [argon2id] set the parallelism param (default 4)
|
||
|
-s, --salt string set the salt string
|
||
|
-l, --salt-length int set the auto-generated salt length (default 16)
|
||
|
-z, --sha512 use sha512 as the algorithm (changes iterations to 50000, change with -i)
|
||
|
```
|
||
|
|
||
|
### Options inherited from parent commands
|
||
|
|
||
|
```
|
||
|
--buildkite Set CI flag for Buildkite
|
||
|
--log-level string Set the log level for the command (default "info")
|
||
|
```
|
||
|
|
||
|
### SEE ALSO
|
||
|
|
||
|
* [authelia-scripts](authelia-scripts.md) -
|
||
|
|
||
|
###### Auto generated by spf13/cobra on 3-Jun-2022
|