NaCl.Core by David De Smet

<PackageReference Include="NaCl.Core" Version="1.0.1" />

 CryptoBytes

public static class CryptoBytes
public static byte[] Combine(byte[][] arrays)

public static bool ConstantTimeEquals(byte[] x, byte[] y)

public static bool ConstantTimeEquals(ArraySegment<byte> x, ArraySegment<byte> y)

public static bool ConstantTimeEquals(byte[] x, int xOffset, byte[] y, int yOffset, int length)

public static byte[] FromBase64String(string s)

public static byte[] FromHexString(string hexString)

public static string ToBase64String(byte[] data)

public static string ToHexStringLower(byte[] data)

public static string ToHexStringUpper(byte[] data)

public static void Wipe(byte[] data)

public static void Wipe(byte[] data, int offset, int count)

public static void Wipe(ArraySegment<byte> data)