MD5Hash Calculation

kailashthiyagar
Kilo Guru

I m looking forward for an example of how to calculate MD5Hash in scope application. It sounds like GlideCheckSum function is one option to calculate MD5Hash but it wont work in Scoped Application it seems. Another option would be to import an external js library and calculate MD5Hash using that.

I m not sure which one to be used and also i dont have an experience of importing js library in Service now and using it. Could someone help me on this?

5 REPLIES 5

Please use GlideDigest API

 

https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=c_GlideDigestScopedAPI

 

and try both the methods getMD5Base64FromInputStream and getMD5HexFromInputStream..