Base64Util.cs 304 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 using System; namespace NCC.Core.Pay.Security { public static class Base64Util { public static bool IsBase64String(string str) { Span<byte> buffer = stackalloc byte[str.Length]; return Convert.TryFromBase64String(str, buffer, out _); } } }