@different 下面是加密和解密的代码 let algorithm = ‘des-cfb’ let key = ‘12345678’ let iv = ‘12345678’ function en(buffer) { let cipher = crypto.createCipheriv(algorithm, key, iv) return cipher.update(buffer) } function de(buffer) { let decipher = crypto.createDecipheriv(algorithm, key, iv) return decipher.update(buffer) }