184290
// DES 加密 encrypt(value, key, iv = 0) { key = new Buffer(key); iv = new Buffer(iv ? iv : 0); const cipher = crypto.createCipheriv("des-ecb", key, iv); cipher.setAutoPadding(true); let ciph = cipher.update(value, "utf8", "base64"); ciph += cipher.final("base64"); return ciph; },
const DES_key = "qwertyuioppoiuytrewqasdf"; const IV = 19283746; const value= new Date().getTime(); 改怎么转换调用DES加密 直接调用一直是Invalid IV length 错误