using NPOI.SS.Formula.Eval;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Myshipping.Core.Helper
{
public static class PasswordCheckHelper
{
public const string REGEX_PASSWORD_STRONG = "^(?![0-9]+$)(?![^0-9]+$)(?![a-zA-Z]+$)(?![^a-zA-Z]+$)(?![a-zA-Z0-9]+$)[a-zA-Z0-9\\S]{8,30}$";
///
/// 验证密码强度是否符合要求
///
///
///
public static bool Check(string password)
{
return Regex.IsMatch(password, REGEX_PASSWORD_STRONG);
}
}
}