mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-18 18:14:03 -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');
|
|
}
|