<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def digest(self):
        '''
        Get digest.

        :return:
        '''

        return salt.utils.stringutils.to_str(self.__digest.hexdigest() + os.linesep)