mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 01:24:02 -05:00
5 lines
142 B
TypeScript
5 lines
142 B
TypeScript
import { createHash } from "crypto";
|
|
|
|
export function sha256(data: string): string {
|
|
return createHash("md5").update(data).digest("hex");
|
|
}
|