docs: function crypt(type, method, key, iv, data, clearEncoding, cipherEncoding){
  	if(type == 'en'){// encrypt
  		// cipher
  		var cipher = crypto.createCipheriv(method, key, iv);
  		cipher.setAutoPadding(true);
  		
  		// crypt
  		var chunks 	= [];
  		chunks.push(cipher.update(data, clearEncoding, cipherEncoding));
  		chunks.push(cipher.final(cipherEncoding));
  		
  		return chunks.join('');
  	}else{// decrypt
  		// decipher
  		var decipher = crypto.createDecipheriv(method, key, iv);
  		decipher.setAutoPadding(true);
  		
  		// decrypt
  		var chunks 	= [];
  		chunks.push(decipher.update(data, cipherEncoding, clearEncoding));
  		chunks.push(decipher.final(clearEncoding));
  		
  		return chunks.join('');
  	}
  }