< Back
ConvertTo-d00mEncryptedString
Post
NAME ConvertTo-d00mEncryptedString
SYNOPSIS
Encrypt a string
SYNTAX
ConvertTo-d00mEncryptedString [-StringToEncrypt] <String> [<CommonParameters>]
DESCRIPTION
Convert a string to a Base64 encoded encrypted string
PARAMETERS
-StringToEncrypt <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ConvertTo-d00mEncryptedString -StringToEncrypt 'Hello World'
This example will convert 'Hello World' to a Base64 encoded
encrypted string
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>'Things and stuff' | ConvertTo-d00mEncryptedString
This example will convert the piped in string, 'Things and stuff' to
a Base64 encoded encrypted string
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Read-Content c:\\file.txt | ConvertTo-d00mEncryptedString
This example will read the contents of the file and convert the contents
into a Base64 encoded encrypted string
RELATED LINKS
SYNOPSIS
Encrypt a string
SYNTAX
ConvertTo-d00mEncryptedString [-StringToEncrypt] <String> [<CommonParameters>]
DESCRIPTION
Convert a string to a Base64 encoded encrypted string
PARAMETERS
-StringToEncrypt <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ConvertTo-d00mEncryptedString -StringToEncrypt 'Hello World'
This example will convert 'Hello World' to a Base64 encoded
encrypted string
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>'Things and stuff' | ConvertTo-d00mEncryptedString
This example will convert the piped in string, 'Things and stuff' to
a Base64 encoded encrypted string
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Read-Content c:\\file.txt | ConvertTo-d00mEncryptedString
This example will read the contents of the file and convert the contents
into a Base64 encoded encrypted string
RELATED LINKS