ConvertFrom-Base64¶
SYNOPSIS¶
Decodes a base64-encoded string or array of strings into UTF-8 strings.
SYNTAX¶
__AllParameterSets¶
ConvertFrom-Base64 [-Base64String] <string[]> [[-Encoding] <string>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Converts a base64-encoded string or array of strings into human-readable UTF-8 strings.
The function accepts input from the pipeline
and validates the input using the Test-Base64
function before decoding.
EXAMPLES¶
EXAMPLE 1¶
"U29tZSBkYXRh" | ConvertFrom-Base64
Output:
Some data
Decodes the base64-encoded string "U29tZSBkYXRh" into its original UTF-8 representation.
EXAMPLE 2¶
@("SGVsbG8=", "V29ybGQ=") | ConvertFrom-Base64
Output:
Hello
World
Decodes each base64-encoded string in the array into its original UTF-8 representation.
PARAMETERS¶
-Base64String¶
The base64-encoded string or array of strings to be decoded.
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Encoding¶
The encoding to use when converting the string to bytes.
Type: System.String
DefaultValue: UTF8
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
System.String[]¶
{{ Fill in the Description }}
OUTPUTS¶
System.String¶
{{ Fill in the Description }}
NOTES¶
The decoded UTF-8 string(s).