Forum Discussion
DavidW_20496
Nimbostratus
Feb 24, 2015HMAC Question
F5 posted an example for generating an HMAC based on sha256
https://devcentral.f5.com/wiki/iRules.HMAC.ashx
In the line 31 there is
set token [sha256 $opad[sha256 "${ipad}${message}"]]
...
Feb 28, 2015
Looks like TCL allows for that sort of concatenation. I took a few minutes but didn't find a documented example of it. The code example does work, however, and modifying it to the following still returns the same results.
set innerdata [sha256 "${ipad}${message}"]
set token [sha256 "${opad}${innerdata}"]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
