import { webcrypto } from "node:crypto"; const subtle = webcrypto.subtle; export async function sha256(msg: ArrayBuffer): Promise{ return await subtle.digest('SHA-256', msg); } export async function sha512(msg: ArrayBuffer): Promise{ return await subtle.digest('SHA-512', msg); }