CryptoHelper.EncodeString Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
EncodeString(String, Encoding)
Encodes string as ASN.1 value (IA5String or UTF8String).
Declaration
public static byte[] EncodeString(string value, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | value | String. |
Encoding | encoding | Encoding (only ASCII and UTF-8 are currently supported. |
Returns
Type | Description |
---|---|
Byte[] | Encoded string. |