ChiakiYu.Common.Data.UserPasswordHelper.EncodePassword C# (CSharp) Method

EncodePassword() public static method

对用户密码进行编码
public static EncodePassword ( string password, UserPasswordFormat passwordFormat ) : string
password string 需要加密的用户密码
passwordFormat UserPasswordFormat 用户密码存储格式
return string
        public static string EncodePassword(string password, UserPasswordFormat passwordFormat)
        {
            return passwordFormat == UserPasswordFormat.Md5 ? MD5(password) : password;
        }