key-string
Function
The key-string command specifies a key string that is used for encryption and decryption.
The undo key-string command deletes the key string configuration.
By default, no key string is configured.
Parameters
Parameter | Description | Value |
---|---|---|
plain | Indicates the plain text used for authentication. The configured text will be stored as unencrypted text and displayed as unencrypted text. | - |
plain-text | Specifies the key string used for encryption and decryption. | The value is case-sensitive and ranges from 1 to 255 characters. |
cipher cipher-text | Indicates the cipher text used for authentication. | The value is a string of case-sensitive characters that can be letters or digits. Spaces are not supported. The authentication password can be a string of 1 to 255 characters in plain text or a string of 20 to 392 characters in cipher text. |
Usage Guidelines
Usage Scenario
In keychain authentication mode, secure protocol packet transmission is provided by dynamically changing the authentication algorithm and key string. This can prevent unauthorized users from obtaining the key string, and authentication and encryption algorithms, and reduce the workload of manually changing the algorithm and key string.
Each keychain consists of multiple keys that are valid within different time periods and each key is configured with an authentication algorithm. When a key becomes valid, the corresponding authentication algorithm is used.
Precautions
An authentication key configured in cipher text mode will be also displayed in cipher text mode. Therefore, remember the plaintext key string when configuring the key in cipher text mode.
If the authentication key is not configured, the corresponding key remains in inactive state.