Forum Discussion
ASM - Rest API - sig-set ID
Here's the steps to create the hash from the name of the ASM object.
- Create the MD5 digest from the name (yields 128 bits of binary data)
- Encode it using base64 (yields 24 characters)
- Trim the last two "==".
For example,
# echo -n /Common/sat | openssl dgst -md5 -binary | base64 | cut -c-22
9afAWDUoawpiNnfSfSGtMQObviously, because MD5 is not reversible (one-way), the hashed ID cannot be decoded back to the object name.
See also
Cool thank you. Works fine. Per chance, do you know the way to do it for whitelist=ips?
I know the name is based on a combination of ipAddress/ipMask, as hash change if you change the ipMask.
I tried all those without success for 192.168.0.30/255.255.255.255 that should be 2S_b6WCJRsVKz9zgrtxYPA:
b'192.168.0.30/255.255.255.255'
b'/192.168.0.30/255.255.255.255'
b'/Common/whitelist-ips/192.168.0.30/255.255.255.255'
b'/Common/whitelist-ips/192.168.0.30/255.255.255.255'
b'/Common/seb-dev-policy1/whitelist-ips/192.168.0.30/255.255.255.255'
b'/Common/seb-dev-policy1'
b'/whitelist-ips/192.168.0.30/255.255.255.255'
tried also all of them using 192.168.0.30_255.255.255.255 with no success.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
