xmr-btc-swap/src-xmr-btc-swap/src-gui/src/utils/cryptoUtils.ts
2024-08-08 00:45:26 +02:00

5 lines
142 B
TypeScript

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