我要评分
获取效率
正确性
完整性
易理解

encrypt

Function

Outputs a ciphertext character string after you input a plaintext character string.

Syntax

./kmc_tool domainID --encrypt

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

Parameter Description

Table 1 Parameter description

Parameter

Option

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.

Example

set +o history
./kmc_tool 0 --encrypt
set -o history
Figure 1 Generating an encrypted password