< Back

ConvertFrom-d00mEncryptedString

Mon Jan 13, 2020 8:30 am

NAME ConvertFrom-d00mEncryptedString



SYNOPSIS

Decrypt a string





SYNTAX

ConvertFrom-d00mEncryptedString [-StringToDecrypt] <String> [<CommonParameters>]





DESCRIPTION

Convert a Base64 encoded encrypted string to plain text





PARAMETERS

-StringToDecrypt <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:\\>ConvertFrom-d00mEncryptedString -StringToDecrypt '6AAAAMoAAADmAAAA6AAAAA==



This example will decrypt the specified string value from a Base64

encoded encrypted string to plain text









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Read-Content c:\\encrypted.txt | ConvertFrom-d00mEncryptedString



This example will decrypt the contents of the file from a Base64

encoded encrypted string to plain text









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>ConvertTo-d00mEncryptedString 'Hello' | ConvertFrom-d00mEncryptedString



This example will encrypt the string 'Hello' into a Base64 encrypted

string and then decrypt the value by piping in the Base64 encrypted

string to the ConvertFrom-d00mEncryptedString function











RELATED LINKS