<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Utilities.Strings

public static class Strings
General string utilities.
public static Encoding UTF8 { get; }

Use instead of UTF8 to enable validation.

public static string FromAsciiByteArray(byte[] bytes)

public static string FromAsciiByteArray(byte[] bytes, int index, int count)

public static string FromByteArray(byte[] bs)

public static string FromByteArray(byte[] buf, int off, int len)

public static string FromUtf8ByteArray(byte[] bytes)

public static string FromUtf8ByteArray(byte[] bytes, int index, int count)

public static string FromUtf8ByteArray(ReadOnlySpan<byte> bytes)

public static string[] Split(string input, char delimiter)

public static byte[] ToAsciiByteArray(char[] cs)

public static byte[] ToAsciiByteArray(char[] chars, int index, int count)

public static byte[] ToAsciiByteArray(string s)

public static byte[] ToByteArray(char[] cs)

public static byte[] ToByteArray(string s)

public static byte[] ToByteArray(ReadOnlySpan<char> cs)

public static byte[] ToUtf8ByteArray(char[] cs)

public static byte[] ToUtf8ByteArray(char[] chars, int index, int count)

public static byte[] ToUtf8ByteArray(string s)

public static byte[] ToUtf8ByteArray(ReadOnlySpan<char> cs)

public static byte[] ToUtf8ByteArray(string s, int preAlloc, int postAlloc)