Well it turned out, TextEncoder does NOT accept encoding label

This commit is contained in:
NI
2019-09-15 07:42:58 +08:00
parent de8afbb6ce
commit adb6408428
4 changed files with 5 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ class Dial {
*
*/
async buildKeyString() {
const enc = new TextEncoder("utf-8");
const enc = new TextEncoder();
let rTime = Number(Math.trunc(new Date().getTime() / 100000)),
key = await crypt.hmac512(