diff --git a/web/js/worker/sha256-purejs.mjs b/web/js/worker/sha256-purejs.mjs index 60d9971..96a6014 100644 --- a/web/js/worker/sha256-purejs.mjs +++ b/web/js/worker/sha256-purejs.mjs @@ -6,7 +6,7 @@ const calculateSHA256 = (text) => { return hash.digest(); }; -function uint8ArrayToHexString(arr) { +function toHexString(arr) { return Array.from(arr) .map((c) => c.toString(16).padStart(2, "0")) .join("");