Forum Discussion
ukstin
Nimbostratus
Jan 29, 2009encrypt/decrypt URI
Hi,
I´m trying to do an Irule to encrypt and decrypt the URI with a cookie value as key. But it´s not working as expected, somebody as any opinion about these irule?
when HTTP_R...
ukstin
Nimbostratus
Jan 29, 2009sorry for my mistake Colin,
the main problem is with the decrypt part in http_request, the response encryption i think is working, but I´m in trouble to identify when a uri was previously encrypted or not, if the URI wasn´t encrypted before, there´s no reason for me to decrypt it. If I undertand well if the string wasn´t encrypted the decripted variable will be empty. Is that right?
other question,
on the decryption line i´m getting the error
Jan 29 15:23:44 tmm tmm[3789]: 01220001:3: TCL error: Rule irule_encrypt_uri - conversion error invoked from within "b64decode $uri" it´s happening because the uri wasn´t previously encrypted or this function wasn´t supported this way, the line that invoke this error is this:
set decrypted [AES::decrypt [HTTP::cookie value "JSESSIONID"] [b64decode $uri]]
I think if I can put a control to define when a uri is encrypted I can solve the problem easily.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
