added externalID and SALT mechanism to md5 calc