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?
As an example, the url for generated image looks like this:
/assets/components/gallery/connector.php?action=web/phpthumb&src=%2Fassets%2Fgallery%2F2%2Ftest.jpg&w=600
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.
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?