thanks, still need a little more direction:
I am calling the url through the header function:
header("Location: http://www.domain.com/tmp/$file");
it is the www.domain.com that I need to encrypt. Now this link goes to download a file so basically I don't want the user to not be able to see what domain they are downloading from.
will the mcrypt function still work in this scenario?