Forum Discussion
mtobkes_64700
Nimbostratus
May 06, 2010Hashing header Values
Can someone please tell me if the LTM is able to perform hashing on values received in HTTP request headers? Please tell me if the following requirements are possible using an iRule?
1) When an HTTP request is received, the value of header X-GoodSource-Data is combined with the value of the userid cookie. If the userid cookie is not present, use "0" (zero) for userid.
2) The value is then hashed using HMAC-MD5.
3) The hashed value is then compared to the value of header X-GoodSource-Auth.
4) If the hashed value matches X-GoodSource-Auth, then the request is valid.
5) If the hashed value does not match X-GoodSource-Auth, then delete the True-Client-IP header.
Thanks,
myles
- hoolio
Cirrostratus
Hi Myles, - spark_86682Historic F5 AccountThis sounds doable, if a bit heavywight. There is no build-in command to compute an HMAC, but there is to compute MD5, so if you modify the iRule at http://devcentral.f5.com/Wiki/default.aspx/iRules/HMAC.html to use MD5 instead of sha256, then that should work fine.
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