code: function encrypt(key, iv, data) {
      if(!Buffer.isBuffer(key)) {
          assert(typeof key === 'string');
          key = Buffer.from(key, 'binary')
      }
  
      if(!Buffer.isBuffer(iv)) {
          assert(typeof iv === 'string');
          iv = Buffer.from(iv, 'binary')
      }
  
      if(!Buffer.isBuffer(data)) {
          assert(typeof data === 'string');
          data = Buffer.from(data, 'binary')
      }
  
      var crypted = aes.encipher(data, key, iv);
  
      crypted = Buffer.from(crypted, 'binary');
      
      let ret = Buffer.alloc(crypted.length*2);
      for(let i = 0; i < crypted.length; i++){
          ret[2*i] = (crypted[i] >> 4) + 97;
          ret[2*i+1] = (crypted[i] & 0x0F) + 97;
      }
      return ret.toString('binary');
  }
docs: 加密方法
  @param key    加密key
  @param iv     向量
  @param data   需要加密的数据
  @returns string