Firstly, apologies if this is the wrong place to post this question but I couldn't comment on a previous answer to ask this.
I have inherited a site that already has an encryption / decryption method built in, with a comment that says the methods were taken from this previous post, utilising the RijndaelManaged cryptography class:
https://stackoverflow.com/a/10177020/4178161
The function seems to work fine for most people, but it won't work for the client in their office. They have tried the same function with the same data from their home and it works ok. Is there anything on the network that would not allow the encryption / decryption methods to be used? They have checked their firewall and it's not blocking the page at all. Without being able to replicate I'm struggling to know where to start debugging.
It's for a forgotten password function, the users email address is encrypted and added to a link that is then emailed to the user to reset their password. The client can click this link and load the forgotten password page, but when they try to submit their new password and the email address is decrypted from the url parameter they receive the following error: