< Back
ConvertTo-OIDString
Post
NAME ConvertTo-OIDString
SYNOPSIS
Converts a byte array into an OID string.
SYNTAX
ConvertTo-OIDString [-InputObject] <Byte[]> [<CommonParameters>]
DESCRIPTION
This cmdlet accepts a byte array which is converted into an OID string.
PARAMETERS
-InputObject <Byte[]>
The byte array to convert.
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
System.Byte[]
OUTPUTS
System.String
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/20/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Arr = @(0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01)
$OID = ConvertTo-OIDString $Arr
This produces 1.2.840.113549.1.1.1 as the OID string, which is the OID for RSA Encryption
RELATED LINKS
SYNOPSIS
Converts a byte array into an OID string.
SYNTAX
ConvertTo-OIDString [-InputObject] <Byte[]> [<CommonParameters>]
DESCRIPTION
This cmdlet accepts a byte array which is converted into an OID string.
PARAMETERS
-InputObject <Byte[]>
The byte array to convert.
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
System.Byte[]
OUTPUTS
System.String
NOTES
AUTHOR: Michael Haken
LAST UPDATE: 1/20/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$Arr = @(0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01)
$OID = ConvertTo-OIDString $Arr
This produces 1.2.840.113549.1.1.1 as the OID string, which is the OID for RSA Encryption
RELATED LINKS