frpc-desktop/electron/utils/SecureUtils.ts

12 lines
234 B
TypeScript
Raw Normal View History

2025-02-21 18:30:13 +08:00
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;