fix toHex again...
This commit is contained in:
parent
f8f59abf43
commit
65f87909a5
3 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue