title: MODX Gallery thumb encryption
body: <p>Does anyone know how to encrypt the following url holding values for phpThumb implemented in MODX so that it is stil readable to phpThumb extension?</p>
  
  <p>As an example, the url for generated image looks like this:</p>
  
  <pre><code>/assets/components/gallery/connector.php?action=web/phpthumb&amp;src=%2Fassets%2Fgallery%2F2%2Ftest.jpg&amp;w=600
  </code></pre>
  
  <p>What I would like to achieve is to have this url encrypted so that a user would not be able to edit the image himself. Let's imagine applying watermark to an image using fltr, fltr would be part of the image url which if removed would remove watermark as well.</p>
  
  <p>I have already looked into the Gallery Extra model and know where to look for the url constructor, yet I have no clue to which file the variables of the image url are passed to.
  This means that I'm able to encrypt the image url but can't figure out where the decrypt function needs to be placed in order for phpThumb to read it correctly
  By "user" I mean any site visitor without manager access.
  Any ideas?</p>