INNER CODE UNIT · JavaScript

formatTimeString

DinoChiesa/jwt-webtool · src/js/app.js:168

function formatTimeString(time) {
  return time.toISOString().replace(".000Z", "Z");
}

function hmacToKeyBits(alg) {
  switch (alg) {
    case "HS256":
      return 256;
    case "HS384":
      return 384;
    case "HS512":
      return 512;
  }
  return 9999999;
}

function requiredKeyBitsForAlg(alg) {
  if (alg.startsWith("PBES2")) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…