Forum Discussion
Ian_Smith
Aug 23, 2006Ret. Employee
curious results from md5
when I do this on 9.1.2 or 9.2.3:
when CLIENT_ACCEPTED {
set client [IP::client_addr]
set clienthash [md5 [IP::client_addr]]
log "the client is: $client the c...
unRuleY_95363
Aug 30, 2006Historic F5 Account
Then perhaps you want to binary scan it into a variable...
binary scan [md5 [IP::client_addr]] i4 md5aryThis will return the MD5 hash into 4 32-bit values as a list in md5ary. If you are only interested in using, say the first 4 bytes of the hash, then you could do:binary scan [md5 [IP::client_addr]] ii3 md5var junkThis will put the first 4 bytes into the variable md5var and the rest in junk. Note: this would also be the equivalent of [lindex 0 md5ary] from the first example.Good luck.
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