How to get an MD5 hash in ServiceNow

You can hash any string in ServiceNow using the following:

var digest = new GlideDigest();
gs.info(digest.getMD5Hex('hash this').toLowerCase()); // e80c715e5d4e885f68d7a3853b5fca73