Hello again,
Not being really familiar with all aspects of Modx and how they integrate, and also having rather limited php skils I sometimes run into trouble with what i want to do :-(
I need to encrypt the username when a user logs on and pass it to a remote domain where it will be decrypted and used to provide the user with access to offsite information. The user will be logged on to my site and be able to access and use the pages from the remote server. This is to try and avoid multiple logons. Only the username needs to be sent.
If I used code similar to:
$key = 'key used to (en/de)crypt';
$string = ' string to be encrypted ';
encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));
Where would I place it - in the Login template?
How would I be best to post the encryption key and data to the other site?
Is there a better solution ?
Thanks