Method FromHex
FromHex(String)
Converts a string containing hexadecimal characters to a byte array suitable for use as a onetime password secret.
Declaration
public static byte[] FromHex(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | A string containing hexadecimal characters to convert to a secret. |
Returns
Type | Description |
---|---|
System.Byte[] | A byte array that is the secret to use. |
FromHex(String)
Converts a string containing hexadecimal characters to a byte array suitable for use as a onetime password secret.
Declaration
public static byte[] FromHex(string hex)
Parameters
Type | Name | Description |
---|---|---|
System.String | hex | A string containing hexadecimal characters to convert to a secret. |
Returns
Type | Description |
---|---|
System.Byte[] | A byte array that is the secret to use. |