fix toHex again...

This commit is contained in:
Jurn Wubben 2025-11-12 12:01:51 +01:00
parent f8f59abf43
commit 65f87909a5
3 changed files with 4 additions and 2 deletions

View file

@ -82,7 +82,7 @@
<script>
function preventDefault(e) {alert(); e.preventDefault()}
function toHex(data) {
return Array.from(data).map((b) => b.toString(16).padStart(1, "0")).join("");
return Array.from(data).map((b) => b.toString(16).padStart(2, "0")).join("");
}
async function generateHMAC(key, message) {
const encoder = new TextEncoder();