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