This commit is contained in:
ky_sunl
2021-03-19 03:13:31 +00:00
parent 05b6aa1674
commit a0b5e92db5
4 changed files with 24 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.Web;
@@ -201,5 +202,19 @@ namespace Ewide.Core.Common
{
UpdateWhiteListUser(userID);
}
public static string GetPasswordMD5(string password)
{
var str = password.Trim().ToLower();
str = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(UTF8Encoding.Default.GetBytes(str))).Replace("-", "");
return str;
}
public static bool IsAuthorized()
{
return false;
}
}
}