Forum Discussion
Brian_69413
Nimbostratus
Nov 12, 2007Conversion error for b64encode
I am encrypting username and password values from the [HTTP::payload] of an HTTP_RESPONSE and decrypting those same values on an HTTP_REQUEST. The values encrypt fine and I can log them as such. The...
Brian_69413
Nimbostratus
Nov 28, 2007I have eliminated some of the issues with special characters and hex, but it is still giving the decoding error.
If I take a string, encrypt it, then decrypt it, it works fine. But my iRule encrypts the string then puts it back in the payload. In another event, those new values are extracted from the payload and decrpyted and this is where it fails. I have confirmed that the original encrypted/encoded string is identical to the extracted string. I have also confirmed that the key is the same in both situations. There is not much else that could be wrong here.
My thought is that there is a different data type than string needed to decrpyt it. Is that a possibility? Is there someway to typecast the string into a more "decryptable" type?
One other thing to mention is that it looks like it is an issue with the decoding specifically, not necessarily the decryption(Although maybe that is just because it never got past the decoding.)
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