# ASM RestAPI MD5 Hash calculation

**URL:** <https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955>\
**Category:** Technical Forums\
**Tags:** asm-advanced-waf, icontrolrest, cloud, application-delivery\
**Created:** [July 27, 2019, 11:04pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955 "2019-07-27T23:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien6](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Sebastien6](https://community.f5.com/u/Sebastien6)\
**Post date:** [July 27, 2019, 11:04pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955/1 "2019-07-27T23:04:07Z")

</div>

when I use the following API for eample /mgmt/tm/asm/attack-types/CdlqS-GlMoFdQYr5VfSJDg, CdlqS-GlMoFdQYr5VfSJDg based on the F5 documentation is a MD5 hash. Based on test I did on the F5 ASM, all those MD5 hash come from the hash of the name, of the policy, signature, signature-set, etc…

but when I enter a value and calculate it’s MD5, the value returned is not at all the same. Like if I do MD5 of “Detection Evasion”, instead of returning CdlqS-GlMoFdQYr5VfSJDg, the value I obtained is fe81df82c81afd02556f5b7fdd7cec0e.

Is there a special way to calculate those F5 MD5, or is there a RestApi call that can be made with a name of policy, signature or other ASM items to obtain its equivalent MD5 hash value?

thanks

---

<div class="post-metadata">

**Author:** ![Dario\_Garrido](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Dario\_Garrido](https://community.f5.com/u/Dario_Garrido)\
**Post date:** [July 28, 2019, 10:31pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955/2 "2019-07-28T22:31:37Z")

</div>

Hello Sebastien.

The MD5 calculation is not made from the name and I don’t think that F5 is going to share the algorithm.

That’s the only way to get the code.

**REF** - [myF5](https://support.f5.com/csp/article/K18432457)

KR,

Dario.

---

<div class="post-metadata">

**Author:** ![Sebastien6](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Sebastien6](https://community.f5.com/u/Sebastien6)\
**Post date:** [July 29, 2019, 1:53pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955/3 "2019-07-29T13:53:07Z")

</div>

well it’s probably highly related to the name. The hash of ASM object in the API URL, are identical between various F5 cluster even with different TMOS version as long as the name is the same, and change only and only if the name of the object change. I made lot of testing about it and in the F5 ASM API, name == hash.

I can understand they don’t give the code, but at least an API call where we provide the name and it return the corresponding hash can be really helpful.

---

<div class="post-metadata">

**Author:** ![Dario\_Garrido](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Dario\_Garrido](https://community.f5.com/u/Dario_Garrido)\
**Post date:** [July 29, 2019, 3:13pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955/4 "2019-07-29T15:13:04Z")

</div>

I wouldn’t say that the name couldn’t be involved in the calculation, but I’m sure there is something else.

In your case, I would open a support-case trying to find out more info.

BTW, if my last answer has helped you, I would appreciate if you mark the question as ‘the best’ or give me some upvotes.

KR,

Dario.

---

<div class="post-metadata">

**Author:** ![Dario\_Garrido](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Dario\_Garrido](https://community.f5.com/u/Dario_Garrido)\
**Post date:** [August 1, 2019, 10:54pm UTC](https://community.f5.com/t/asm-restapi-md5-hash-calculation/49955/5 "2019-08-01T22:54:11Z")

</div>

Hello Sebastien.

I know you are in the another thread, but I post this to document it for another people in the future.

How to perform MD5 calculation:

[https://devcentral.f5.com/s/question/0D51T00006oGG1VSAW/asm-rest-api-sigset-id](https://devcentral.f5.com/s/question/0D51T00006oGG1VSAW/asm-rest-api-sigset-id)

KR,

Dario.
