Click or drag to resize
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.Internal
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
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: String
Bytes of data array converted to hexadecimal string, optionally truncated to specified length.
See Also