feat: 密码用MD5加密

This commit is contained in:
zhangyahui
2025-10-31 14:36:23 +08:00
parent 5484848572
commit 8353e81a0f
6 changed files with 47 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import CryptoJS from 'crypto-js'
function getUniversalZoomLevel() {
// 现代浏览器方案
if (window.visualViewport) {
@@ -146,3 +148,12 @@ export async function DownloadImages(list: Array<{ url: string, name?: string }>
}
typeof onSuccess === "function" && onSuccess(successCount, errCount);
}
/**
* MD5加密密码
* @param password 原始密码
* @returns MD5加密后的密码
*/
export function encryptPassword(password: string): string {
return CryptoJS.MD5(password).toString()
}