var

代码片段:AES 加解密代码

function encrypt (plaintext) { var algorithm = 'aes-256-cbc' var key = 'I am a happy key.' var sha256sum = crypto.createHash('sha256') var _key = sha256sum.update(key).digest() var _iv = '