Forum Discussion
Harold_Deadman_
Nimbostratus
Apr 13, 2007AES decryption returning empty string
I am working on encrypting some cookies but I must be doing something wrong because I get empty strings when I decrypt the cookie. I have made the following example to demonstrate what I am seeing. Do...
Harold_Deadman_
Nimbostratus
Apr 26, 2007There are a couple wiki entries and a blog entry on this site that appear to be doing what my simple test i-rule is doing on init. F5 tech support wasn't able to give me any information beyond verifying my syntax so I am asking this forum again if anyone can verify that they have successfully encrypted and base 64 encoded cookies in 9.4 (and then decoded and decrypted the original value). When I have tried to decrypt AES encryption in other languages I get errors related to "padding". Might that be happening here?
Is the AES::decrypt method silently failing and returning an empty string on error? Is there any way to know what the error might be?
These are the other examples of people encrypting and decrypting cookies.
http://devcentral.f5.com/weblogs/Joe/archive/2005/11/09/1541.aspx
http://devcentral.f5.com/wiki/default.aspx/iRules/EncryptingCookie.html
http://devcentral.f5.com/wiki/default.aspx/iRules/ReverseProxyWithBasicSSO.html
Thanks, Hal
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