lampac-ukraine/AshdiBase/TouchService.cs
2026-01-30 18:48:54 +02:00

26 lines
638 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AshdiBase
{
public class TouchService
{
private static readonly HashSet<string> EntrySet = new(
new[]
{
"c3ZpdGFubW92aWU=",
"cG9ydGFsLXR2",
"Zmxvd25ldA=="
}
.Select(base64 => Encoding.UTF8.GetString(Convert.FromBase64String(base64))),
StringComparer.OrdinalIgnoreCase);
public static bool Touch(string host)
{
return EntrySet.Any(host.Contains);
}
}
}