Logo white

antissoft / wurenji

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • wurenji
  • netcore
  • src
  • Infrastructure
  • NCC.Pay
  • NCC.Security
  • Base64Util.cs
  • 项目初始化
    de2bd2f9
    “wangming” authored
    2025-08-17 16:53:54 +0800  
    Browse Code »
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 _);
        }
    }
}