Files
certd/packages/core/basic/src/utils/util.hash.ts
T

10 lines
161 B
TypeScript
Raw Normal View History

2024-09-06 10:19:03 +08:00
import crypto from "crypto";
function md5(data: string) {
return crypto.createHash("md5").update(data).digest("hex");
}
export const hashUtils = {
md5,
};