---
title: "Rest PKI Core command: **hash-root-pass**"
description: "Reference for the Rest PKI Core hash-root-pass command, which computes a salted hash of the root password for the General__RootPasswordHash setting."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/hash-root-pass"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-09-15"
---

# Rest PKI Core command: **hash-root-pass**

## Name

`hash-root-pass` - Computes a salted hash for a given root password

## Syntax

```sh
dotnet Lacuna.RestPki.Site.dll -- hash-root-pass
```

Or, on Docker:

```sh
docker run -i lacunasoftware/restpkicore:5.0 -- hash-root-pass
```

## Description

The `hash-root-pass` command is meant to be used with *root authentication mode*. Use it to compute a salted hash of the desired
root password, and then set the hash on the `General__RootPasswordHash` setting.

The password is read from the `stdin`.

## See also

* [Rest PKI Core command-line tool](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool)
