secretOrPrivateKey

node生成token报错:secretOrPrivateKey has a minimum key size of 2048 bits for RS256 at Object.module.exports [as sign]

提要:在node生成token时 利用用jsonwebtoken,利用非对称加密的生成token const jwt = require("jsonwebtoken"); const privateKey = fs.readFileSync("./keys/private.key"); const ......
共1篇  :1/1页 首页上一页1下一页尾页