1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/Utilities/ByteExtensions.cs

18 lines
375 B
C#
Raw Normal View History

using System;
namespace Teknik.Utilities
{
public static class ByteExtensions
{
public static string ToHex(this byte[] bytes)
{
string hashString = string.Empty;
foreach (byte x in bytes)
{
hashString += String.Format("{0:x2}", x);
}
return hashString;
}
}
}