getMD5Hex is a function commonly found in utility libraries (such as Apache Commons Codec) that calculates the MD5 hash of data (like a string or file) and returns the result as a 32-character hexadecimal string
Example:
var sname = 'Joe Bloggs';
var value = new GlideDigest().getMD5Hex(sname.toLowerCase());
gs.info ('result==='+value);
ServiceNow
Comments
Post a Comment