By adding the shader effect as your code above : effect = "TwoLights.fx";
then the .fx file will be a standalone text file, how can I encrypt the
file in this way? as I read the FAQ from your website that you mentioned
licensee need to encrypt the shader codes while publishing their games.

PS : Maybe it could be solved with liteC.