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

Base64

public sealed class Base64
public static byte[] Decode(byte[] data)

public static byte[] Decode(string data)

public static int Decode(string data, Stream outStream)

public static byte[] Encode(byte[] data)

public static byte[] Encode(byte[] data, int off, int length)

public static int Encode(byte[] data, Stream outStream)

public static int Encode(byte[] data, int off, int length, Stream outStream)

public static string ToBase64String(byte[] data)

public static string ToBase64String(byte[] data, int off, int length)