Configures a string of text to describe a key and, optionally, encrypts or decrypts the text string.
By default, no text string is configured.
Key configuration mode
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.
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