xmr-btc-swap/src-gui/src/utils/cryptoUtils.ts
2024-08-09 19:46:58 +02:00

5 lines
142 B
TypeScript

import { createHash } from "crypto";
export function sha256(data: string): string {
return createHash("md5").update(data).digest("hex");
}