mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-22 17:16:19 -07:00
- Add backend selection, setup gating, Anki integration, and external host support - Add launcher flags, documentation, packaging, and focused tests - Open on-demand overlay modals on the first attempt
6 lines
254 B
JavaScript
6 lines
254 B
JavaScript
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
export async function ankiDigest(bytes) {
|
|
const hash = new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", bytes));
|
|
return [...hash].map(byte => byte.toString(16).padStart(2, "0")).join("");
|
|
}
|