export async function passwordDigest(password: string): Promise { const hash = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(password)) return Array.from(new Uint8Array(hash), (byte) => byte.toString(16).padStart(2, '0')).join('') }