update ui and other frontend updates
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export async function sha256(input: string): Promise<string> {
|
||||
const hash = await globalThis.crypto.subtle.digest(
|
||||
'SHA-256',
|
||||
new TextEncoder().encode(input),
|
||||
);
|
||||
return Array.from(new Uint8Array(hash))
|
||||
.map((b) => b.toString(16).padStart(2, '0'))
|
||||
.join('');
|
||||
}
|
||||
Reference in New Issue
Block a user