# pre-share-masked

#### Syntax

pre-share-masked key

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Specifies an encrypted (black) preshared key. The router uses this key to authenticate IKE negotiations that arrive from any remote IP address specified for this transport profile and that are destined for any local IP address specified for this transport profile. There is no no version. To remove a key, use the no pre-share command.

| Note: To have preshared key authentication take place, you must also specify the IKE policy rule as preshared by issuing the authentication command with the pre-share keyword in ISAKMP Policy Configuration mode.

#### Options

- key—Encrypted key value; to obtain this value, enter the unencrypted key using the pre-share command and then display the encrypted version of the key using the show configuration command

#### Mode

Local IPSec Transport Profile Configuration