超管登录

This commit is contained in:
柳清爽
2025-04-09 14:07:54 +08:00
parent 899bac425b
commit c8893e4473
9 changed files with 228 additions and 6 deletions

View File

@@ -1,6 +1,14 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
import crypto from "crypto"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
/**
* MD5加密函数
*/
export function md5(text: string): string {
return crypto.createHash("md5").update(text).digest("hex")
}