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...
hoolio
Cirrostratus
Feb 03, 2009I think the AES key must be hex characters. If the jsessionid isn't made up of only hex characters, you could convert it to hex:
Save a test string
set key_string "a b . *^&E^ d asdfasdfasdf "
Convert the test string to hex
binary scan $key_string H* key_hex
log local0. "\$key_hex: $key_hex"
Encrypt another test string with the key in hex
set encrypted [AES::encrypt $key_hex "test123"]
Log the decrypted value
log local0. "decrypted: [AES::decrypt $key_hex $encrypted]"
Or you could use a single key to encrypt the content for all users.
Aaron
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
