using System.Security.Cryptography;
using System.Text;
namespace Oms.Application.Shared;
///
/// 统一的密码摘要工具。
///
public static class OmsPasswordHelper
{
///
/// 将明文密码转换为小写 MD5 字符串。
///
public static string ToMd5(string password)
{
var bytes = MD5.HashData(Encoding.UTF8.GetBytes(password));
return Convert.ToHexString(bytes).ToLowerInvariant();
}
}