'hexdigest()'

def hexdigest(self):

    dig = self.digest()
    hex_digest = ''
    for d in dig:
        if is_python2:
            hex_digest += ('%02x' % ord(d))
        else:
            hex_digest += ('%02x' % d)
    return hex_digest
