Rate This Document
Findability
Accuracy
Completeness
Readability

encrypt

Function

Outputs a ciphertext character string after you input a plaintext character string in interactive mode or not.

Syntax

./kmc_tool domainID --encrypt [stdin]plainText

Parameter Description

Parameter

Description

domainID

Domain ID.

Domain IDs are divided into different domains to facilitate key management: keypass 0, whitelist 1, keytab_server 2 and keytab_client 3.

plainText

Plaintext.

stdin

Enters the interactive mode. The ciphertext password is output after you input the plaintext and press Enter.

Usage Guideline

You are advised to disable history recording before generating an encrypted password to prevent the password from being recorded. You can enable this function after the password is generated.

Example

set +o history
./kmc_tool 0 --encrypt "helloworld"
set -o history