key-string

Configures a string of text to describe a key and, optionally, encrypts or decrypts the text string.

Syntax

key-string text-string [ encryption-level { 0 | 7}]
no key-string

Command Default

By default, no text string is configured.

Parameters

text-string
Describes the key with a maximum of 128 ASCII characters.
encryption-level { 0 | 7}
Defines the encryption level for the text string. Enter 0 for plain text or 7 for encrypted. The default is 7.

Modes

Key configuration mode

Usage Guidelines

Use the no form of the command to remove the specified key and all associated configuration.You can remove a key only if it is not used by an application.

Examples

The following example configures a key string of Mystring1 for key 10 in key chain 1.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# key-string Mystring1 

The following example configures a key string of Mystring1 with an encryption level of 0 for key 10 in key chain 1.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# key-string Mystring1 encryption-level 0