CryptoHelperBytesToHexa Method |
Converts byte array to string of hexadecimal digits (each byte is represented by 2 digits).
The length of the string is truncated to truncateToLength, if specified.
No boundary check is performed.
Namespace: CMS.Helpers.InternalAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax public static string BytesToHexa(
byte[] data,
Nullable<int> truncateToLength = null
)
Parameters
- data
- Type: SystemByte
Byte array to be converted to hexadecimal digits string. - truncateToLength (Optional)
- Type: SystemNullableInt32
If specified, the resulting hexadecimal digits string is truncated to given length. Full length is taken by default.
Return Value
Type:
StringBytes of
data array converted to hexadecimal string, optionally truncated to specified length.
See Also