NamespaceSystemLibrary.Common.Framework.Extensions SystemLibrary.Common.Framework.Net.dll
Byte array extensions
ByteArrayExtensions
public static class ByteArrayExtensions
Inheritance
object
ByteArrayExtensions
Examples
Arguments
X
Methods
Return a base64 string of the bytes
Remarks
X
If you dont need base64 format, .Obfuscating() method is faster if data is less than ~400KB
Returns a hash string of the bytes
Remarks
X
If data is larger than ~200 bytes then .ToSha1Hash() is faster
Returns a sha1 hash string of the bytes
Remarks
X
If data is less than ~200 bytes then .ToMD5Hash() is faster
Returns a sha 256 hash string of the bytes
Remarks
X
If input is null or empty it returns null or empty string
Return a text representation of the byte array
public static string ToText(this byte[] bytes, Encoding encoding = null)
}