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

Org.BouncyCastle.Utilities.Strings

public static class Strings
General string utilities.
namespace Org.BouncyCastle.Utilities { public static class Strings { public static string FromByteArray(byte[] bs); public static byte[] ToByteArray(char[] cs); public static byte[] ToByteArray(string s); public static string FromAsciiByteArray(byte[] bytes); public static byte[] ToAsciiByteArray(char[] cs); public static byte[] ToAsciiByteArray(string s); public static string FromUtf8ByteArray(byte[] bytes); public static string FromUtf8ByteArray(byte[] bytes, int index, int count); public static byte[] ToUtf8ByteArray(char[] cs); public static byte[] ToUtf8ByteArray(string s); } }