using System.Text;

namespace Forwarder.Services.Implementations;

/// <inheritdoc />
public class BasicAuthService : IBasicAuthService
{
	/// <inheritdoc />
	public string GetBasicAuth(string username, string password)
	{
		return $"Basic {Convert.ToBase64String(
			Encoding.UTF8.GetBytes($"{username}:{password}"))}";
	}
}
