sunpengfei
2025-08-14 e057ae677549a83cc8c502bfe4f835cf6991d653
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Azure.Core;
using Furion.DataEncryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace FlexJobApi.Core
{
    /// <summary>
    /// 密码工具
    /// </summary>
    public static class PasswordUtils
    {
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="password"></param>
        /// <returns></returns>
        public static string EncryptPassword(this string password)
        {
            return PBKDF2Encryption.Encrypt(MD5Encryption.Encrypt(password));
        }
    }
}