io7m | single-page | multi-page | epub | Looseleaf User Manual
9.2. check-configuration
Previous
9. Command-Line Interface
Up
9.4. migrate-database
Next

# 9.3. create-password

- 9.3.1. Name
- 9.3.2. Description
- 9.3.3. Parameters
- 9.3.4. Security
- 9.3.5. Examples

## 9.3.1. Name

1
create-password - Create a hashed password.

## 9.3.2. Description

1
The create-password command creates a hashed password suitable for placing into the configuration file.

## 9.3.3. Parameters

### 9.3.3.1. --password

Attribute | Value
--- | ---
Name | --password
Type | java.lang.String
Default Value |
Cardinality | [1, 1]
Description | The password.

### 9.3.3.2. --verbose

Attribute | Value
--- | ---
Name | --verbose
Type | com.io7m.quarrel.ext.logback.QLogLevel
Default Value | info
Cardinality | [1, 1]
Description | Set the logging level of the application.

## 9.3.4. Security

1
Note that, as the command accepts a password directly on the command line, the command should not be executed on systems where hostile users may try to read the process environments of other users on the system. This would allow the hostile users to capture the unhashed passwords being created. If this is of concern, the password can be placed into a file temporarily using @ syntax.

## 9.3.5. Examples

### 9.3.5.1. Example

    $ looseleaf create-password --password 12345678
    {
      "algorithm" : "PBKDF2WithHmacSHA256:10000:256",
      "hash" : "D53F53E4777177AEF56746914970D10314958570A8293FEB2C6C88371CF65AB1",
      "salt" : "9E7DFDE9DA90D8473F7920B57B79B6F2"
    }

9.2. check-configuration
Previous
9. Command-Line Interface
Up
9.4. migrate-database
Next
io7m | single-page | multi-page | epub | Looseleaf User Manual