Click or drag to resize

Crypt32ManagedCryptStringToBinary Method

Note: This API is now obsolete.

Converts a formatted string into an array of bytes.

Namespace:  PKI.ManagedAPI
Assembly:  PKI.Core (in PKI.Core.dll) Version: (
[ObsoleteAttribute("Use AsnFormatter.StringToBinary instead", true)]
public static byte[] CryptStringToBinary(
	string inputString,
	CryptEncoding inputEncoding = CryptEncoding.CRYPT_STRING_ANY


Type: SystemString
A string that contains the formatted string to be converted
inputEncoding (Optional)
Type: PKI.ManagedAPICryptEncoding
Indicates the format of the string to be converted. By default CRYPT_STRING_ANY is used.

Return Value

Type: Byte
Pure binary array of the decoded string.
See Also