add option to change length of md5 hash