< Back
New-EncryptedString
Post
NAME New-EncryptedString
SYNOPSIS
Encrypts a SecureString with the specified encryption key
SYNTAX
New-EncryptedString [-StringToEncrypt] <String[]> [-EncryptionKey] <String> [<CommonParameters>]
New-EncryptedString [-SecureStringToEncrypt] <SecureString[]> [-EncryptionKey] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-StringToEncrypt <String[]>
The string to be encrypted
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-SecureStringToEncrypt <SecureString[]>
The string to be encrypted
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-EncryptionKey <String>
The encryption key
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
RELATED LINKS
SYNOPSIS
Encrypts a SecureString with the specified encryption key
SYNTAX
New-EncryptedString [-StringToEncrypt] <String[]> [-EncryptionKey] <String> [<CommonParameters>]
New-EncryptedString [-SecureStringToEncrypt] <SecureString[]> [-EncryptionKey] <String> [<CommonParameters>]
DESCRIPTION
PARAMETERS
-StringToEncrypt <String[]>
The string to be encrypted
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-SecureStringToEncrypt <SecureString[]>
The string to be encrypted
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-EncryptionKey <String>
The encryption key
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
RELATED LINKS