frpc-desktop/electron/utils/SecureUtils.ts
刘嘉伟 8d56faeb80 🚧 v2
2025-02-21 18:30:13 +08:00

12 lines
234 B
TypeScript

import { createHash } from "crypto";
class SecureUtils {
public static calculateMD5(str: string): string {
const hash = createHash("md5");
hash.update(str);
return hash.digest("hex");
}
}
export default SecureUtils;