NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

Convert-Data Cmdlet

Parameters   Output Objects   Configuration Settings  

The Convert-Data cmdlet is used to encode or decode data from one format to another.

Syntax

Convert-Data [parameters]

Remarks

The data to encode or decode is specified by Data. If decoding, the format to use is set in the From parameter and when encoding, the format to use is set in the To argument. If both are specified, the data will be decoded using the format specified in From and encoded to the format specified in To.

Example The cmdlets support pipeline input for some of their parameters. Prebuilding an object and piping it to the cmdlet is very useful, but should be used with caution to prevent security conflicts. Steps have been taken to decrease the risk of a possibly accidental pipe to the cmdlet, for instance, the Credential parameter cannot be piped to the cmdlet and must be specified manually.


# encoding
convert-data -data test -to base64
# decoding
convert-data -data dGVzdA== -from base64

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
CharsetThe character set of the data.
ConfigSpecifies one or more configuration settings.
DataThe data to encode or decode.
DataBThe data to encode or decode.
FromThe format to decode Data with.
LogFileThe location of a file to which debug information is written.
ToThe format to encode Data into.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

ConvertedDataThis object contains the converted data.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

Base64LineBreakTells the cmdlet whether to include line breaks in Base64 encoded content or not.
HMACAlgorithmThe hash algorithm to use when generating a Hash-based Message Authentication Code (HMAC).
EncodeHashWhether the hash value is hex encoded.
HMACKeyA key to use when generating a Hash-based Message Authentication Code (HMAC).
MaxFileSizeWhen encoding, controls whether encoded data should be split into several files and gives the maximum allowed size for these files.
UseModifiedUTF7Specifies whether or not a modified form of UTF-7 for IMAP mailbox naming is used.
UseExtendedHexBase32Specifies whether or not the Extended Hex alphabet is used.
UseBackgroundThreadWhether threads created by the cmdlet are background threads.
UseInternalSecurityAPITells the cmdlet whether or not to use the system security libraries or an internal implementation.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 7240]