草庐IT

createCipheriv

全部标签

node.js - Nodejs createCipher 与 createCipheriv

我目前正在尝试使用NodeJS加密静态数据,我在NodeAPI文档中读到createCipher不是recommended.Theimplementationofcrypto.createCipher()deriveskeysusingtheOpenSSLfunctionEVP_BytesToKeywiththedigestalgorithmsettoMD5,oneiteration,andnosalt.Thelackofsaltallowsdictionaryattacksasthesamepasswordalwayscreatesthesamekey.Thelowiteration