---
name: "string2key"
section: "8"
platform: "linux"
package: "heimdal-clients"
version: "7.8.git20221117.28daf24+dfsg-9+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/string2key"
---

# string2key(8)

map a password into a key

## NAME

**string2key** – map a password into a key

## SYNOPSIS

**string2key** \[**-5** \| **-****-version5**\] \[**-4** \| **-****-version4**\] \[**-a** \| **-****-afs**\] \[**-c** *cell* **-****-cell=***cell*\] \[**-w** *password* **-****-password=***password*\] \[**-p** *principal* **-****-principal=***principal*\] \[**-k** *string* **-****-keytype=***string*\] *password*

## DESCRIPTION

**string2key** performs the string-to-key function. This is useful when you want to handle the raw key instead of the password. Supported options:

- **-5**, **-****-version5**

  Output Kerberos v5 string-to-key

- **-4**, **-****-version4**

  Output Kerberos v4 string-to-key

- **-a**, **-****-afs**

  Output AFS string-to-key

- **-c** *cell*, **-****-cell=***cell*

  AFS cell to use

- **-w** *password*, **-****-password=***password*

  Password to use

- **-p** *principal*, **-****-principal=***principal*

  Kerberos v5 principal to use

- **-k** *string*, **-****-keytype=***string*

  Keytype

- **-****-version**

  print version

- **-****-help**
