< Back
ConvertTo-GzUnprotectedByteArray
Post
NAME ConvertTo-GzUnprotectedByteArray
SYNOPSIS
Converts a secure string to byte[]
SYNTAX
ConvertTo-GzUnprotectedByteArray [[-SecureString] <SecureString>] [-Encoding <String>] [<CommonParameters>]
DESCRIPTION
Converts a secure string to a byte array using
the specified Encoding.
PARAMETERS
-SecureString <SecureString>
The secure string to pass in.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Encoding <String>
The string encoding to use for converting to bytes.
Required? false
Position? named
Default value UTF-8
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
Byte[]
NOTES
Its better to convert a security string to an array of chars
or array of bytes rather than a string.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$bytes = $ss | ConvertTo-GzUnprotectedByteArray
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Protect-GzBlob; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Protect-GzBlob [[-Blob] <byte[]>] [-PrivateKey <byte[]>] [-InsecureInfo <byte[]>]
[<CommonParameters>]
Protect-GzBlob [[-Blob] <byte[]>] [-Password <securestring>] [-InsecureInfo <byte[]>]
[<CommonParameters>]
Protect-GzBlob [[-Blob] <byte[]>] [-Key <byte[]>] [-AuthenticationKey <byte[]>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
ModuleName : Gz-ProtectData
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Protect-GzBlob
Category : Function
Component :
Role :
Functionality :
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Protect-GzString; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-PrivateKey <byte[]>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-Password <securestring>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-Key <byte[]>]
[-AuthenticationKey <byte[]>] [-InsecureInfo <byte[]>] [<CommonParameters>]
ModuleName : Gz-ProtectData
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Protect-GzString
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
Converts a secure string to byte[]
SYNTAX
ConvertTo-GzUnprotectedByteArray [[-SecureString] <SecureString>] [-Encoding <String>] [<CommonParameters>]
DESCRIPTION
Converts a secure string to a byte array using
the specified Encoding.
PARAMETERS
-SecureString <SecureString>
The secure string to pass in.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Encoding <String>
The string encoding to use for converting to bytes.
Required? false
Position? named
Default value UTF-8
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
Byte[]
NOTES
Its better to convert a security string to an array of chars
or array of bytes rather than a string.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$bytes = $ss | ConvertTo-GzUnprotectedByteArray
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Protect-GzBlob; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Protect-GzBlob [[-Blob] <byte[]>] [-PrivateKey <byte[]>] [-InsecureInfo <byte[]>]
[<CommonParameters>]
Protect-GzBlob [[-Blob] <byte[]>] [-Password <securestring>] [-InsecureInfo <byte[]>]
[<CommonParameters>]
Protect-GzBlob [[-Blob] <byte[]>] [-Key <byte[]>] [-AuthenticationKey <byte[]>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
ModuleName : Gz-ProtectData
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Protect-GzBlob
Category : Function
Component :
Role :
Functionality :
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Protect-GzString; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-PrivateKey <byte[]>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-Password <securestring>]
[-InsecureInfo <byte[]>] [<CommonParameters>]
Protect-GzString [[-Value] <string>] [-Encoding <string>] [-Key <byte[]>]
[-AuthenticationKey <byte[]>] [-InsecureInfo <byte[]>] [<CommonParameters>]
ModuleName : Gz-ProtectData
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Protect-GzString
Category : Function
Component :
Role :
Functionality :