mirror of
https://github.com/certd/certd.git
synced 2026-04-14 04:20:52 +08:00
10 lines
161 B
TypeScript
10 lines
161 B
TypeScript
import crypto from "crypto";
|
|
|
|
function md5(data: string) {
|
|
return crypto.createHash("md5").update(data).digest("hex");
|
|
}
|
|
|
|
export const hashUtils = {
|
|
md5,
|
|
};
|